public interface TopologyCount extends Serializable
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) ; }
Modifier and Type | Method and Description |
---|---|
int |
getCIsNumber()
Returns the total number of CIs in the query's result.
|
int |
getCIsNumber(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(String linkName)
Returns the number of relations associated with the specified link.
|
int getCIsNumber()
int getRelationsNumber()
int getCIsNumber(String nodeName)
int getRelationsNumber(String linkName)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.