Package org.somda.sdc.glue.provider.sco
Class ScoController
java.lang.Object
org.somda.sdc.glue.provider.sco.ScoController
Manages callbacks for incoming set service requests.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters an object that possesses callback functions for incoming set service requests.processIncomingSetOperation(String handle, InstanceIdentifier source, T payload) Invokes processing of an incoming network set service call.
-
Method Details
-
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
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 withIncomingSetServiceRequest.
-