|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.appdef.shared.DependencyTree
public class DependencyTree
A DependencyTree has child DependencyNodes (who in turn my have children of their own), structurally, it's a list of lists.
Constructor Summary | |
---|---|
DependencyTree(ApplicationValue appValue)
|
Method Summary | |
---|---|
void |
addNode(AppService appSvc)
Add a node with no dependents |
void |
addNode(AppService appSvc,
AppService depSvc)
Adds an AppService depSvc as a child of another
AppService appSvc . |
boolean |
equals(java.lang.Object o)
|
DependencyNode |
findAppService(AppdefResourceValue aResource)
|
DependencyNode |
findAppService(AppService aService)
Returns a top level DependencyNode |
static DependencyNode |
findAppServiceById(DependencyTree tree,
java.lang.Integer appSvcId)
|
static java.util.List |
findDependees(DependencyTree tree,
DependencyNode appSvcNode,
java.util.List services)
Method findDependees. |
static java.util.List |
findDependers(DependencyTree tree,
java.lang.Integer appSvcId,
java.util.List services)
Method findDependers. |
static java.util.List |
findPotentialDependees(DependencyTree tree,
DependencyNode currentNode,
java.util.List services)
The criteria for qualifying AppServices as potential dependees for a given node are the following: The candidate AppService is in the DependencyTree already, i.e. |
static DependencyNode |
findServiceById(DependencyTree tree,
java.lang.Integer serviceId)
|
ApplicationValue |
getApplication()
|
java.lang.Integer |
getAppPK()
|
java.util.List |
getNodes()
Returns a List of top level DependencyNodes |
boolean |
isEntryPoint(AppService appService)
Check if the app service represents an entry point within this tree. |
static java.util.Map |
mapServices(java.util.List services)
|
static boolean |
nodeHasChild(DependencyNode node,
java.lang.Integer appSvcId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DependencyTree(ApplicationValue appValue)
Method Detail |
---|
public ApplicationValue getApplication()
public java.lang.Integer getAppPK()
public java.util.List getNodes()
public void addNode(AppService appSvc, AppService depSvc)
depSvc
as a child of another
AppService appSvc
. If the appSvc
does
not exist, it will be created as a toplevel node.
public void addNode(AppService appSvc)
public DependencyNode findAppService(AppService aService) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public DependencyNode findAppService(AppdefResourceValue aResource) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public boolean isEntryPoint(AppService appService) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static boolean nodeHasChild(DependencyNode node, java.lang.Integer appSvcId)
public static DependencyNode findAppServiceById(DependencyTree tree, java.lang.Integer appSvcId)
public static DependencyNode findServiceById(DependencyTree tree, java.lang.Integer serviceId)
public static java.util.Map mapServices(java.util.List services)
public static java.util.List findDependees(DependencyTree tree, DependencyNode appSvcNode, java.util.List services)
services
-
public static java.util.List findDependers(DependencyTree tree, java.lang.Integer appSvcId, java.util.List services)
tree
- the DependencyTreeappSvcId
- the current ApplicationServiceservices
- a list of ServiceValues associated with the application
public static java.util.List findPotentialDependees(DependencyTree tree, DependencyNode currentNode, java.util.List services)
tree
- currentNode
- services
-
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |