|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.RmiAdapter
public class RmiAdapter
Provides a very simple object adapter component. This naming context exports an object in the following way:
Identifier is returned directly.
| Field Summary | |
|---|---|
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 SkeletonFactory |
skeletonFactory
The skeleton factory used to create skeletons for the exported objects. |
| Constructor Summary | |
|---|---|
RmiAdapter()
Constructs a new RmiAdapter. |
|
| Method Summary | |
|---|---|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
|
Identifier |
decode(byte[] data,
int offset,
int length)
Decodes an identifier from a buffer portion. |
Identifier |
decode(UnMarshaller u)
Decodes an identifier from the provided unmarshaller. |
Identifier |
export(java.lang.Object obj,
Context hints)
Creates a new identifier for the object interface designated by the obj parameter. |
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String clientItfName)
|
void |
run()
Blocks the caller thread. |
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 SkeletonFactory skeletonFactory
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
protected org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
|---|
public RmiAdapter()
RmiAdapter.
| 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.BindingController
public Identifier export(java.lang.Object obj,
Context hints)
throws JonathanException
resolve method on the returned identifier should return id.
export in interface NamingContextobj - an object.hints - additional information.
JonathanException - if something goes wrong.org.objectweb.jonathan.model.naming_context#export(org.objectweb.jonathan.model.name)
public Identifier decode(byte[] data,
int offset,
int length)
throws JonathanException
encoding method is borne by the Identifier interface, but the decoding methods must be borne by
each naming context. This method creates an identifier (associated
with the target naming context), from the length bytes of
data starting at offset offset.
decode in interface NamingContextdata - the byte array to read the encoded identifier from.offset - offset of the first byte of the encoding.length - length of the encoding.
JonathanException - if something goes wrong.
public Identifier decode(UnMarshaller u)
throws JonathanException
decode in interface NamingContextu - an unmarhaller;
JonathanException - if something goes wrong.public void run()
export method is called for the time, in order to
keep the JVM process alive, waiting for incoming remote method calls.
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||