Solved

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

Posted on 2007-03-28
2
186 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 59
Error in @AspectJ Based AOP with Spring 2 13
by zero exception 10 39
String array comparison 4 32
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

785 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