org.simantics.databoard.channel
Interface ServiceHandler


public interface ServiceHandler

Server interface of command channel.

For each callable command there is a well-known commandId and datatype.

Author:
Toni Kalajainen

Method Summary
 java.util.Collection<CommandSpec> getCommands()
          Get all callable commands handled by this service handler.
 void handleRequest(ServiceRequest request)
          Handle service request from the client.
 

Method Detail

handleRequest

void handleRequest(ServiceRequest request)
Handle service request from the client. The implementation may handle the service at once or later, even in another thread. The result is written to the asynchronous result object.

Parameters:
request -

getCommands

java.util.Collection<CommandSpec> getCommands()
Get all callable commands handled by this service handler. This result is list of command specifications. For each command there is unique identification, result type and error type.

Returns:
commands