Solved

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

Posted on 2007-03-28
2
183 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:mayankeagle
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:
mayankeagle 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 60
count11 challenge 6 48
Problem to page 4 27
HSSFWorkbook cannot be resolved error 10 23
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now