|
|||||||||||
| 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)
|
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()
|
Object |
lookupFc(String clientItfName)
|
void |
unbindFc(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 LoggerFactory loggerFactory
protected Logger logger
| Constructor Detail |
public RmiProtocol()
RmiProtocol.
| Method Detail |
public String[] listFc()
listFc in interface BindingControllerpublic Object lookupFc(String clientItfName)
lookupFc in interface BindingController
public void bindFc(String clientItfName,
Object serverItf)
bindFc in interface BindingControllerpublic void unbindFc(String clientItfName)
unbindFc in interface 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(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 | ||||||||||