|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.RmiProtocol
public class RmiProtocol
Provides a very simple invocation protocol component. This invocation protocol uses only two kinds of messages:
| Field Summary | |
|---|---|
protected NamingContext |
adapter
The naming context used to decode the object key contained in request messages. |
protected org.objectweb.util.monolog.api.Logger |
logger
The logger used to log messages. |
protected org.objectweb.util.monolog.api.LoggerFactory |
loggerFactory
The optional logger factory used to get a logger for this component. |
protected MarshallerFactory |
marshallerFactory
The marshaller factory used to create request or reply messages. |
protected Scheduler |
scheduler
The scheduler used to synchronized threads for waiting reply messages. |
| Constructor Summary | |
|---|---|
RmiProtocol()
Constructs a new RmiProtocol. |
|
| Method Summary | |
|---|---|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
|
ProtocolGraph |
createProtocolGraph(ProtocolGraph[] subgraphs,
Context hints)
Creates a new protocol graph with a number of given sub protocol graphs. |
SessionIdentifier |
createSessionIdentifier(java.util.Properties info,
SessionIdentifier[] next)
Creates a new session identifier with the provided info. |
boolean |
isAnInvocationProtocol()
Returns true if the target protocol is an invocation protocol. |
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String clientItfName)
|
void |
unbindFc(java.lang.String clientItfName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NamingContext adapter
protected MarshallerFactory marshallerFactory
protected Scheduler scheduler
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
protected org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
|---|
public RmiProtocol()
RmiProtocol.
| Method Detail |
|---|
public java.lang.String[] listFc()
listFc in interface org.objectweb.fractal.api.control.BindingControllerpublic java.lang.Object lookupFc(java.lang.String clientItfName)
lookupFc in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
bindFc in interface org.objectweb.fractal.api.control.BindingControllerpublic void unbindFc(java.lang.String clientItfName)
unbindFc in interface org.objectweb.fractal.api.control.BindingControllerpublic boolean isAnInvocationProtocol()
prepareInvocation method
on sessions obtained from the target protocol will not raise an
InternalException, but perform
the appropriate work.
isAnInvocationProtocol in interface Protocol
public ProtocolGraph createProtocolGraph(ProtocolGraph[] subgraphs,
Context hints)
throws JonathanException
createProtocolGraph in interface Protocolsubgraphs - the lower-level graphs.hints - the information required to build the graph.
JonathanException - if the hints or the subgraphs are invalid for
this protocol.
public SessionIdentifier createSessionIdentifier(java.util.Properties info,
SessionIdentifier[] next)
throws JonathanException
createSessionIdentifier in interface Protocolinfo - the information to create the session identifier.next - lower session identifiers, if any.
JonathanException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||