Class ScoController


  • public class ScoController
    extends Object
    Manages callbacks for incoming set service requests.
    • Method Detail

      • processIncomingSetOperation

        public <T> InvocationResponse processIncomingSetOperation​(String handle,
                                                                  InstanceIdentifier source,
                                                                  T payload)
        Invokes processing of an incoming network set service call.
        Type Parameters:
        T - type of the request data.
        Parameters:
        handle - the handle of the operation that was called.
        source - the instance identifier that represents the calling client.
        payload - the request data.
        Returns:
        the initial invocation info required for the response message. The initial invocation info is requested by the callback that is going to be invoked. In case that no callback can be found, a fail state is returned.
      • addOperationInvocationReceiver

        public void addOperationInvocationReceiver​(OperationInvocationReceiver receiver)
        Registers an object that possesses callback functions for incoming set service requests.

        This class is designed to handle exactly one receiver per handle or data type. Adding multiple receivers for one handle or data type causes undefined behavior!

        Parameters:
        receiver - the object that includes methods annotated with IncomingSetServiceRequest.