yankeebushsoftware
asked on
What does this mean in this java code snippet regarding the filters?
What does this mean in this java code snippet regarding the filters?
public long[] getNodeChildren(long nodeId) throws ManagementSupportException {
TEServiceStub.GetNodeChild ren request = new TEServiceStub.GetNodeChild ren();
TEServiceStub.NodesKey key = new TEServiceStub.NodesKey();
key.setNodeID(nodeId);
//here, we can set a filter here, but what to set ? null.
//filters are not implemented yet
key.setFilters(null);
request.setKey(key);
TEServiceStub.GetNodeChild renRespons e response = null;
try {
response = stub.getNodeChildren(reque st);
} catch (RemoteException e) {
logger.warn("Fail to call TEService :" + e);
throw new ManagementSupportException ("Fail to call TEService :" + e);
}
if(!response.getStatus().g etSuccess( )) {
logger.warn("TEService return failure while call getNodeChildren()");
throw new ManagementSupportException ("TEServic e return failure while call getNodeChildren()");
}
return response.getChildNodeIDs() .getValue( );
}
public long[] getNodeChildren(long nodeId) throws ManagementSupportException
TEServiceStub.GetNodeChild
TEServiceStub.NodesKey key = new TEServiceStub.NodesKey();
key.setNodeID(nodeId);
//here, we can set a filter here, but what to set ? null.
//filters are not implemented yet
key.setFilters(null);
request.setKey(key);
TEServiceStub.GetNodeChild
try {
response = stub.getNodeChildren(reque
} catch (RemoteException e) {
logger.warn("Fail to call TEService :" + e);
throw new ManagementSupportException
}
if(!response.getStatus().g
logger.warn("TEService return failure while call getNodeChildren()");
throw new ManagementSupportException
}
return response.getChildNodeIDs()
}
Not sure, that can only be told after we know what is TEServiceStub and NodesKey - they seem to be 3rd party proprietary, not standard Java classes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.