com.hp.ucmdb.api.topology
Interface TopologyCount

All Superinterfaces:
java.io.Serializable

public interface TopologyCount
extends java.io.Serializable

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

getCIsNumber

int getCIsNumber()
Returns the total number of CIs in the query's result.

Returns:
total number of CIs

getRelationsNumber

int getRelationsNumber()
Returns the total number of relations in the query's result.

Returns:
total number of relations

getCIsNumber

int getCIsNumber(java.lang.String nodeName)
Returns the number of CIs associated with the specified node.

Returns:
number of CIs

getRelationsNumber

int getRelationsNumber(java.lang.String linkName)
Returns the number of relations associated with the specified link.

Returns:
number of relations


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.