Package de.elo.ix.client.plugin
Interface PluginService
- All Superinterfaces:
byps.BRemote
,byps.Remote
,de.elo.utils.net.Remote
,Remote
public interface PluginService
extends byps.BRemote
This service allows to start and stop OSGi plugins.
- Since:
- 10.99.999.008
-
Method Summary
Modifier and TypeMethodDescriptionconfigure
(ClientInfo ci, long id, String config) Read and/or modify plugin configuration.getHistory
(ClientInfo ci, long id) Get the history of a plugin.getPlugin
(ClientInfo ci, String symbolicName) Return the plugin with the given symbolic name.getPlugins
(ClientInfo ci) Return a list of installed plugins.long
install
(ClientInfo ci, String location) Install a plugin from the location of a JAR file.send
(ClientInfo ci, long id, PluginMessage message) Send a message to a plugin.void
start
(ClientInfo ci, long id) Start plugin with given ID.void
stop
(ClientInfo ci, long id) Stop plugin with given ID.void
uninstall
(ClientInfo ci, long id) Uninstall plugin with given ID.long
upload
(ClientInfo ci, InputStream istream) Install a plugin which JAR is uploaded from a stream.Methods inherited from interface byps.BRemote
BRemote_getTargetId
-
Method Details
-
getPlugins
Return a list of installed plugins.- Parameters:
ci
- ClientInfo- Returns:
- List
- Throws:
byps.RemoteException
-
getPlugin
Return 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.- Parameters:
ci
- ClientInfosymbolicName
- Symbolic name.- Returns:
- List
- Throws:
byps.RemoteException
- Since:
- 11.00.000.018
-
start
Start plugin with given ID.- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
to receive a plugin ID.- Throws:
byps.RemoteException
-
stop
Stop plugin with given ID.- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
to receive a plugin ID.- Throws:
byps.RemoteException
-
uninstall
Uninstall plugin with given ID.- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
to receive a plugin ID.- Throws:
byps.RemoteException
- Since:
- 10.99.999.026
-
install
Install a plugin from the location of a JAR file.- Parameters:
ci
- ClientInfolocation
- Path to the bundle from the view point of Indexserver. If a bundle with the same Bundle-SymbolicName is already installed, this function returns its ID and skips installation.- Returns:
- ID of the installed bundle.
- Throws:
byps.RemoteException
- Since:
- 10.99.999.026
-
upload
Install a plugin which JAR is uploaded from a stream.- Parameters:
ci
- ClientInfoistream
- JAR file content as InputStream. If a bundle with the same Bundle-SymbolicName is already installed, this function returns its ID and skips installation.- Returns:
- ID of the installed bundle.
- Throws:
byps.RemoteException
- Since:
- 10.99.999.026
-
getHistory
Get the history of a plugin.- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
to receive a plugin ID.- Returns:
PluginHistory
containing at least the plain text- Throws:
byps.RemoteException
- Since:
- 12.00.000.048
-
configure
Read and/or modify plugin configuration. If the plugin does not support configuration, an exception with codeIXExceptionC.UNSUPPORTED_FUNCTION
is thrown. This function internally calls the interface de.elo.ix.plugin.ConfigurePlugin.configure().- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
orgetPlugin(ClientInfo, String)
to receive a plugin's ID.config
- Configuration encoded as string. Format depends on object's internals.- Returns:
- Previous configuration.
- Throws:
byps.RemoteException
- Since:
- 11.00.000.006
-
send
Send a message to a plugin. This function directs the message to theConfigurePlugin
interface of the plugin.- Parameters:
ci
- ClientInfoid
- Plugin ID, callgetPlugins(ClientInfo)
orgetPlugin(ClientInfo, String)
to receive a plugin's ID.message
- Message to be sent- Returns:
- Response message
- Throws:
byps.RemoteException
- Since:
- 11.00.000.018
-