|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopologyCount
Result count of a topology query execution.
You can retrieve CIs and relations counts from this by query node name.
Example: Return the number of hosts in UCMDB
QueryDefinition queryDefinition = factory.createQueryDefinition("Get all hosts"); queryDefinition.addNode("Hosts").ofType("host"); TopologyCount topologyCount = topologyQueryService.evaluateQuery(queryDefinition); System.out.println("Number of hosts:" + topologyCount.getCIsNumberByName("Hosts) ; }
Method Summary | |
---|---|
int |
getCIsNumber()
Returns the total number of CIs in the query's result. |
int |
getCIsNumber(java.lang.String nodeName)
Returns the number of CIs associated with the specified node. |
int |
getRelationsNumber()
Returns the total number of relations in the query's result. |
int |
getRelationsNumber(java.lang.String linkName)
Returns the number of relations associated with the specified link. |
Method Detail |
---|
int getCIsNumber()
int getRelationsNumber()
int getCIsNumber(java.lang.String nodeName)
int getRelationsNumber(java.lang.String linkName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |