edu.uci.isr.yancees.plugin
Interface ProtocolPluginInterface
- All Superinterfaces:
- java.rmi.Remote
- All Known Subinterfaces:
- RemotePeerPublishProtocolPluginInterface, RemoteProtocolPluginInterface
- All Known Implementing Classes:
- AbstractProtocolPlugin, RemoteAbstractProtocolPlugin, RemoteAbstractProtocolPluginImplementation, RemotePeerPublishProtocolPluginImplementation
- public interface ProtocolPluginInterface
- extends java.rmi.Remote
This class implements a generic protocol plugin interface, which is not message oritented.
In other words, it is based on method invocation, remotely implemented through
RMI, as opposed to XML messages.
If RMI is used as the remote interaction protocol between the plug-in and the client,
a class needs to implement the RMI remote interface too.
getId
public long getId()
throws java.rmi.RemoteException
- Returns:
- the unique Id of this plugin
- Throws:
java.rmi.RemoteException
getTag
public java.lang.String getTag()
throws java.rmi.RemoteException
- Returns:
- the tag name that this plugin is representing. It corresponds to
the type of this plugin instance. For example, if this is a plug-in that handles
a subtree headed by the tag, its type will be "followed-by"
- Throws:
java.rmi.RemoteException