|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.kernel.DependencyManager
DependencyManager is the record keeper of the dependencies in Geronimo. The DependencyManager does not enforce any dependencies, it is simply a place where components can register their intent to be dependent on another component. Since a JMX Component can pretty much do whatever it wants a component must watch the components it depends on to assure that they are following the J2EE-Management state machine.
The DependencyManager uses the nomenclature of parent-child where a child is dependent on a parent. The names parent and child have no other meaning are just a convience to make the code readable.
Constructor Summary | |
DependencyManager(javax.management.MBeanServer mbeanServer)
|
Method Summary | |
void |
addDependencies(javax.management.ObjectName child,
Set parents)
Adds dependencies from the child to every parent in the parents set |
void |
addDependency(javax.management.ObjectName child,
javax.management.ObjectName parent)
Declares a dependency from a child to a parent. |
void |
addStartHolds(javax.management.ObjectName objectName,
Collection holds)
Adds a hold on a collection of object name patterns. |
javax.management.ObjectName |
checkBlocker(javax.management.ObjectName objectName)
Gets the object name of the mbean blocking the start specified mbean. |
void |
close()
|
Set |
getChildren(javax.management.ObjectName parent)
Gets all of the MBeans that have a dependency on the specified startParent. |
Set |
getParents(javax.management.ObjectName child)
Gets the set of parents that the child is depending on |
void |
handleNotification(javax.management.Notification n,
Object handback)
|
void |
removeAllDependencies(javax.management.ObjectName child)
Removes all dependencies for a child |
void |
removeAllStartHolds(javax.management.ObjectName objectName)
Removes all of the holds owned by a component. |
void |
removeDependency(javax.management.ObjectName child,
javax.management.ObjectName parent)
Removes a dependency from a child to a parent |
void |
removeStartHolds(javax.management.ObjectName objectName,
Collection holds)
Removes a collection of holds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DependencyManager(javax.management.MBeanServer mbeanServer) throws Exception
Method Detail |
public void close()
public void addDependency(javax.management.ObjectName child, javax.management.ObjectName parent)
child
- the dependent componentparent
- the component the child is depending onpublic void removeDependency(javax.management.ObjectName child, javax.management.ObjectName parent)
child
- the dependnet componentparent
- the component that the child wil no longer depend onpublic void removeAllDependencies(javax.management.ObjectName child)
child
- the component that will no longer depend on anythingpublic void addDependencies(javax.management.ObjectName child, Set parents)
child
- the dependent componentparents
- the set of components the child is depending onpublic Set getParents(javax.management.ObjectName child)
child
- the dependent component
public Set getChildren(javax.management.ObjectName parent)
parent
- the component the returned childen set depend on
public void addStartHolds(javax.management.ObjectName objectName, Collection holds)
objectName
- the name of the component placing the holdsholds
- a collection of object name patterns which should not startpublic void removeStartHolds(javax.management.ObjectName objectName, Collection holds)
objectName
- the object name of the components owning the holdsholds
- a collection of the holds to removepublic void removeAllStartHolds(javax.management.ObjectName objectName)
objectName
- the object name of the component that will no longer have any holdspublic javax.management.ObjectName checkBlocker(javax.management.ObjectName objectName)
objectName
- the mbean to check for blockers
public void handleNotification(javax.management.Notification n, Object handback)
handleNotification
in interface javax.management.NotificationListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |