|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlugin
A plugin within CIMA is a very generic concept and thus this interface only contains generic methods. Each plugin should have a unique identifier within a CIMA instance and should respond to requests to start and stop. In addition, each plugin should be able to supply some information about it to aid in discovery and utilisation of the plugin.
| Method Summary | |
|---|---|
org.instrumentmiddleware.cima.parcel.SubscriptionResponseType |
doSubscribe(SubscribeInfo info)
|
java.lang.String |
getId()
Get the plugins id. |
org.w3c.dom.Node |
getInformation()
Provide access to this plugins information. |
int |
getSequenceNumber()
Get the next sequence number for parcels created by this plugin. |
org.instrumentmiddleware.cima.parcel.ResponseType |
processParcel(org.instrumentmiddleware.cima.parcel.BodyType body,
java.util.Calendar creationTime,
ISession session,
org.instrumentmiddleware.cima.parcel.ResponseType response)
Process a parcel. |
void |
setStartOnLoad(boolean startOnLoad)
This method is used to specify if this plugin will be started automatically after being loaded. |
void |
start()
Start this plugin. |
boolean |
startOnLoad()
Returns true if this plugin has been configured to start automatically after being loaded |
void |
stop()
Stop this plugin. |
| Method Detail |
|---|
java.lang.String getId()
void start()
throws PluginException
PluginException
void stop()
throws PluginException
PluginExceptionorg.w3c.dom.Node getInformation()
int getSequenceNumber()
org.instrumentmiddleware.cima.parcel.ResponseType processParcel(org.instrumentmiddleware.cima.parcel.BodyType body,
java.util.Calendar creationTime,
ISession session,
org.instrumentmiddleware.cima.parcel.ResponseType response)
throws PluginException
request - the request parcel
PluginException - if there is a problem while processing the parcelboolean startOnLoad()
void setStartOnLoad(boolean startOnLoad)
startOnLoad - If true, this plugin will start automatically after being loadedorg.instrumentmiddleware.cima.parcel.SubscriptionResponseType doSubscribe(SubscribeInfo info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||