Package de.elo.ix.client.plugin
Interface PluginServiceAsync
- All Superinterfaces:
byps.BRemote,PluginService,byps.Remote,de.elo.utils.net.Remote,Remote
- All Known Implementing Classes:
BSkeleton_PluginService
-
Method Summary
Modifier and TypeMethodDescriptionconfigure(ClientInfo ci, long id, String config) Read and/or modify plugin configuration.voidconfigure(ClientInfo ci, long id, String config, byps.BAsyncResult<String> asyncResult) getHistory(ClientInfo ci, long id) Get the history of a plugin.voidgetHistory(ClientInfo ci, long id, byps.BAsyncResult<PluginHistory> asyncResult) getPlugin(ClientInfo ci, String symbolicName) Return the plugin with the given symbolic name.voidgetPlugin(ClientInfo ci, String symbolicName, byps.BAsyncResult<PluginInfo> asyncResult) getPlugins(ClientInfo ci) Return a list of installed plugins.voidgetPlugins(ClientInfo ci, byps.BAsyncResult<List<PluginInfo>> asyncResult) longinstall(ClientInfo ci, String location) Install a plugin from the location of a JAR file.voidinstall(ClientInfo ci, String location, byps.BAsyncResult<Long> asyncResult) send(ClientInfo ci, long id, PluginMessage message) Send a message to a plugin.voidsend(ClientInfo ci, long id, PluginMessage message, byps.BAsyncResult<PluginMessage> asyncResult) voidstart(ClientInfo ci, long id) Start plugin with given ID.voidstart(ClientInfo ci, long id, byps.BAsyncResult<Object> asyncResult) voidstop(ClientInfo ci, long id) Stop plugin with given ID.voidstop(ClientInfo ci, long id, byps.BAsyncResult<Object> asyncResult) voiduninstall(ClientInfo ci, long id) Uninstall plugin with given ID.voiduninstall(ClientInfo ci, long id, byps.BAsyncResult<Object> asyncResult) longupload(ClientInfo ci, InputStream istream) Install a plugin which JAR is uploaded from a stream.voidupload(ClientInfo ci, InputStream istream, byps.BAsyncResult<Long> asyncResult) Methods inherited from interface byps.BRemote
BRemote_getTargetId
-
Method Details
-
getPlugins
Description copied from interface:PluginServiceReturn a list of installed plugins.- Specified by:
getPluginsin interfacePluginService- Parameters:
ci- ClientInfo- Returns:
- List Return a list of installed plugins.
- Throws:
byps.RemoteException
-
getPlugins
-
getPlugin
Description copied from interface:PluginServiceReturn the plugin with the given symbolic name. If no plugin with the given name is running, an exception with code IXExceptionC#NOT_FOUND is thrown.- Specified by:
getPluginin interfacePluginService- Parameters:
ci- ClientInfosymbolicName- Symbolic name. If no plugin with the given name is running, an exception with code IXExceptionC#NOT_FOUND is thrown.- Returns:
- List
- Throws:
byps.RemoteException- Since:
- 11.00.000.018 Return the plugin with the given symbolic name.
-
getPlugin
-
start
Description copied from interface:PluginServiceStart plugin with given ID.- Specified by:
startin interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)to receive a plugin ID. Start plugin with given ID.- Throws:
byps.RemoteException
-
start
-
stop
Description copied from interface:PluginServiceStop plugin with given ID.- Specified by:
stopin interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)to receive a plugin ID. Stop plugin with given ID.- Throws:
byps.RemoteException
-
stop
-
uninstall
Description copied from interface:PluginServiceUninstall plugin with given ID.- Specified by:
uninstallin interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)to receive a plugin ID.- Throws:
byps.RemoteException- Since:
- 10.99.999.026 Uninstall plugin with given ID.
-
uninstall
-
install
Description copied from interface:PluginServiceInstall a plugin from the location of a JAR file.- Specified by:
installin interfacePluginService- Parameters:
ci- ClientInfolocation- Path to the bundle from the view point of Indexserver. If a bundle with thesame- Bundle-SymbolicName is already installed, this function returns its ID and skipsinstallation- .- Returns:
- ID of the installed bundle.
- Throws:
byps.RemoteException- Since:
- 10.99.999.026 Install a plugin from the location of a JAR file.
-
install
-
upload
Description copied from interface:PluginServiceInstall a plugin which JAR is uploaded from a stream.- Specified by:
uploadin interfacePluginService- Parameters:
ci- ClientInfoistream- JAR file content as InputStream. If a bundle with the same Bundle-SymbolicNameis- already installed, this function returns its ID and skips installation.- Returns:
- ID of the installed bundle.
- Throws:
byps.RemoteException- Since:
- 10.99.999.026 Install a plugin which JAR is uploaded from a stream.
-
upload
-
getHistory
Description copied from interface:PluginServiceGet the history of a plugin.- Specified by:
getHistoryin interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)to receive a plugin ID.- Returns:
PluginHistorycontaining at least the plain text- Throws:
byps.RemoteException- Since:
- 12.00.000.048 Get the history of a plugin.
-
getHistory
-
configure
Description copied from interface:PluginServiceRead and/or modify plugin configuration. If the plugin does not support configuration, an exception with codeIXExceptionC.UNSUPPORTED_FUNCTIONis thrown. This function internally calls the interface de.elo.ix.plugin.ConfigurePlugin.configure().- Specified by:
configurein interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)orconfig- Configuration encoded as string. Format depends on object's internals. If the plugin does not support configuration, an exception with codeis thrown. This function internally calls the interface de.elo.ix.plugin.ConfigurePlugin.configure().invalid reference
IXExceptionC#UNSUPPORTED_FUNCTION- Returns:
- Previous configuration.
- Throws:
byps.RemoteException- Since:
- 11.00.000.006 Read and/or modify plugin configuration.
-
configure
-
send
Description copied from interface:PluginServiceSend a message to a plugin. This function directs the message to theConfigurePlugininterface of the plugin.- Specified by:
sendin interfacePluginService- Parameters:
ci- ClientInfoid- Plugin ID, callgetPlugins(ClientInfo)ormessage- Message to be sent This function directs the message to theConfigurePlugininterface of the plugin.- Returns:
- Response message
- Throws:
byps.RemoteException- Since:
- 11.00.000.018 Send a message to a plugin.
-
send
void send(ClientInfo ci, long id, PluginMessage message, byps.BAsyncResult<PluginMessage> asyncResult)
-