|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.rmi.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 Logger |
logger
The logger used to log messages. |
protected 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(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
ProtocolGraph |
createProtocolGraph(ProtocolGraph[] subgraphs,
Context hints)
Creates a new protocol graph with a number of given sub protocol graphs. |
SessionIdentifier |
createSessionIdentifier(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. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
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 LoggerFactory loggerFactory
protected Logger logger
Constructor Detail |
public RmiProtocol()
RmiProtocol
.
Method Detail |
public String[] listFc()
BindingController
listFc
in interface BindingController
public Object lookupFc(String clientItfName)
BindingController
bindFc
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName, Object serverItf)
BindingController
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.public 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 Protocol
subgraphs
- 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(Properties info, SessionIdentifier[] next) throws JonathanException
createSessionIdentifier
in interface Protocol
JonathanException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |