Class Requester

java.lang.Object
org.serviceconnector.net.req.Requester
All Implemented Interfaces:
IRequester

public class Requester extends Object implements IRequester
The Class SCRequester. Defines behavior of requester in the context of Service Connector.
Author:
JTraber
  • Constructor Details

    • Requester

      public Requester(RemoteNodeConfiguration remoteNodeConfiguration)
      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:
      send in interface IRequester
      Parameters:
      message - the scmp
      timeoutMillis - the timeout in seconds
      callback - the callback
      Throws:
      Exception - exception in sending/receiving process
    • getRemoteNodeConfiguration

      public RemoteNodeConfiguration getRemoteNodeConfiguration()
      Gets the context.
      Specified by:
      getRemoteNodeConfiguration in interface IRequester
      Returns:
      the context
    • destroy

      public void destroy()
      Destroy.
      Specified by:
      destroy in interface IRequester
    • immediateConnect

      public void immediateConnect()
      Immediate connect.
    • dump

      public void dump(XMLDumpWriter writer) throws Exception
      Dump the requester into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception