Package org.serviceconnector.net.req
Class Requester
java.lang.Object
org.serviceconnector.net.req.Requester
- All Implemented Interfaces:
IRequester
The Class SCRequester. Defines behavior of requester in the context of Service Connector.
- Author:
- JTraber
-
Constructor Summary
ConstructorsConstructorDescriptionRequester(RemoteNodeConfiguration remoteNodeConfiguration) Instantiates a new requester. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy.voiddump(XMLDumpWriter writer) Dump the requester into the xml writer.Gets the context.voidImmediate connect.voidsend(SCMPMessage message, int timeoutMillis, ISCMPMessageCallback callback) Send and receive response asynchronous.
-
Constructor Details
-
Requester
Instantiates a new requester.- Parameters:
remoteNodeConfiguration- the remote node configuration
-
-
Method Details
-
send
public void send(SCMPMessage message, int timeoutMillis, ISCMPMessageCallback callback) throws Exception Send and receive response asynchronous.- Specified by:
sendin interfaceIRequester- Parameters:
message- the scmptimeoutMillis- the timeout in secondscallback- the callback- Throws:
Exception- exception in sending/receiving process
-
getRemoteNodeConfiguration
Gets the context.- Specified by:
getRemoteNodeConfigurationin interfaceIRequester- Returns:
- the context
-
destroy
public void destroy()Destroy.- Specified by:
destroyin interfaceIRequester
-
immediateConnect
public void immediateConnect()Immediate connect. -
dump
Dump the requester into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-