public class RmiSemantic extends java.lang.Object implements ISemantic
Modifier and Type | Field and Description |
---|---|
static short |
PLUGIN_ABILITY
The ability of the plug-in. [5][3].
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
RmiSemantic()
Creates a new semantic plug-in that provides a reliable remote method
invocation semantic.
|
Modifier and Type | Method and Description |
---|---|
void |
deliverIncoming(IStreamConnector connector,
ISession session)
Delivers an incoming invocation and executes it if necessary.
|
PluginDescription |
getPluginDescription()
Returns the plug-in description of this plug-in.
|
void |
performOutgoing(Invocation invocation,
ISession session)
Delivers an outgoing invocation and modifies the original invocation
to contain the results of the remote invocation after this method
returns.
|
boolean |
prepareSession(PluginDescription d,
NFCollection c,
ISession s)
Tests whether the specified requirements can be fulfilled by the plug-in
and prepares a session for the specified requirements.
|
void |
setSemanticManager(ISemanticManager manager)
Sets the plug-in manager that is used to retrieve remote plug-in descriptions.
|
void |
start()
Called to start the plug-in.
|
void |
stop()
Called to stop the plug-in.
|
java.lang.String |
toString()
Returns a string representation of the plug-ins internal structure.
|
public static final short PLUGIN_ABILITY
public RmiSemantic()
public void setSemanticManager(ISemanticManager manager)
setSemanticManager
in interface ISemantic
manager
- The semantic plug-in manager.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin
public void start()
public void stop()
public boolean prepareSession(PluginDescription d, NFCollection c, ISession s)
prepareSession
in interface ISemantic
d
- The plug-in description of the remote semantic plug-in.c
- The requirements of the session.s
- The session to adjust.public void performOutgoing(Invocation invocation, ISession session)
performOutgoing
in interface ISemantic
invocation
- The invocation that should be delivered.session
- The session data that can be used to request a new
connection.public void deliverIncoming(IStreamConnector connector, ISession session)
deliverIncoming
in interface IDispatcher
connector
- The connector used to retrieve the invocation.session
- The session data of the connector.public java.lang.String toString()
toString
in class java.lang.Object