Package org.somda.sdc.glue.provider.sco
Class ScoController
- java.lang.Object
-
- org.somda.sdc.glue.provider.sco.ScoController
-
public class ScoController extends Object
Manages callbacks for incoming set service requests.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOperationInvocationReceiver(OperationInvocationReceiver receiver)Registers an object that possesses callback functions for incoming set service requests.<T> InvocationResponseprocessIncomingSetOperation(String handle, InstanceIdentifier source, T payload)Invokes processing of an incoming network set service call.
-
-
-
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 withIncomingSetServiceRequest.
-
-