Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 76
Java and GPO 11 70
Problem to start Neon 20 86
CONDITIONAL MAX STATEMENT IN T-SQL 3 39
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

911 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

25 Experts available now in Live!

Get 1:1 Help Now