X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FServiceHandler.java;fp=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FServiceHandler.java;h=8d99ac85b8bfbcd1517676c8cabb103bb3514f28;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/ServiceHandler.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/ServiceHandler.java new file mode 100644 index 000000000..8d99ac85b --- /dev/null +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/ServiceHandler.java @@ -0,0 +1,32 @@ +package org.simantics.databoard.channel; + +import java.util.Collection; + +/** + * Server interface of command channel.

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

+ * + * @author Toni Kalajainen + */ +public interface ServiceHandler { + + /** + * 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.

+ * + * @param request + */ + void handleRequest( ServiceRequest request ); + + /** + * 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. + * + * @return commands + */ + Collection getCommands(); + +}