Interface AbstractRemotePluginSpi
-
- All Known Subinterfaces:
ObservableRemotePluginSpi,RemotePluginSpi,RemotePoolPluginSpi
public interface AbstractRemotePluginSpiAbstract API extended by all types of distributed remote plugin extensions able to communicate with a distributed local service extension.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringexecuteRemotely(java.lang.String jsonData)Forwards the provided JSON data to the associated distributed local service.java.lang.StringgetName()Gets the name of the distributed remote plugin extension.voidonUnregister()Invoked when unregistering the plugin.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the distributed remote plugin extension.- Returns:
- A not empty string.
- Since:
- 2.0.0
-
executeRemotely
java.lang.String executeRemotely(java.lang.String jsonData)
Forwards the provided JSON data to the associated distributed local service.- Parameters:
jsonData- A JSON string containing the data to transmit.- Returns:
- A JSON string containing the response received from the distributed local service. It can be empty if the command returns nothing.
- Since:
- 2.0.0
-
onUnregister
void onUnregister()
Invoked when unregistering the plugin.- Since:
- 2.0.0
-
-