Solved

What does this mean in this java code snippet regarding the filters?

Posted on 2007-03-28
2
194 Views
Last Modified: 2010-03-31
What does this mean in this java code snippet regarding the filters?
public long[] getNodeChildren(long nodeId) throws ManagementSupportException {
            TEServiceStub.GetNodeChildren request = new TEServiceStub.GetNodeChildren();
            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.GetNodeChildrenResponse response = null;
            try {
                  response = stub.getNodeChildren(request);
            } catch (RemoteException e) {
                  logger.warn("Fail to call TEService :" + e);
                  throw new ManagementSupportException("Fail to call TEService :" + e);
            }

            if(!response.getStatus().getSuccess()) {
                  logger.warn("TEService return failure while call getNodeChildren()");
                  throw new ManagementSupportException("TEService return failure while call getNodeChildren()");
            }
            return response.getChildNodeIDs().getValue();
      }
0
Comment
Question by:yankeebushsoftware
  • 2
2 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18813898
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.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18813909
Probably the web service method gets the children of some node based on the request passed to it - before calling it, the search filters for those matching children are being set to null (means return all children matching the key) - I *guess*
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I remove an object from a 3 51
Glassfish admin console not working 1 53
java mysql insert application 14 41
program arguments vs VM arguments 4 25
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn different types of Android Layout and some basics of an Android App.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question