|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceDiscoveryListener
The interface for resource discovery query completion listener. The listener provides the means for the resource discovery engine to send the results back to the caller service. The listener provides a pair of methods for each query type: the success notification and the failure notification. The success method receives the outcome of the discovery query. The failure method, on the other hand, receives the exception caught or provided when the discovery query fails. The class implementing the listener should also have the means to store the connection between the call and the notification (e.g. Context), usually as a class embedded within a service class.
Method Summary | |
---|---|
void |
queryCallFailed(java.lang.Exception exception)
The query failure invocation method, receiving the exception caught or produced at the error. |
void |
queryCallSucceeded(java.util.ArrayList<CommunicationAddress> nodeAddressList)
The query success invocation method, receiving the list of communication addresses of the resources selected by the query. |
void |
queryCallSucceededGLUE(java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.Object>> nodes)
The query success invocation method, receiving the list of GLUE descriptions of the nodes selected by the query. |
Method Detail |
---|
void queryCallSucceeded(java.util.ArrayList<CommunicationAddress> nodeAddressList)
nodeAddressList
- The collection of communication addresses of the
resources selected by the query.void queryCallSucceededGLUE(java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.Object>> nodes)
nodeAddressList
- The collection of GLUE descriptions in their
parsed, searchable form.void queryCallFailed(java.lang.Exception exception)
exception
- The exception caught or produced at the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |