|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jeremie.libs.stub_factories.std.RefImpl
Provides an implementation of a Jeremie reference
to a
remote object.
A Jeremie reference contains:
identifiers
;
marshaller factory
;
session identifier
;
session high object
for sending messages down the protocol stack;
Field Summary | |
protected SessionIdentifier |
ep
The session identifier associated with this reference. |
protected Identifier[] |
ids
The set of identifiers held by this reference. |
protected MarshallerFactory |
mfactory
The marshaller factory associated with this reference. |
protected Session_High |
session
The protocol session high object associated with this reference. |
Fields inherited from interface java.rmi.server.RemoteRef |
packagePrefix, serialVersionUID |
Constructor Summary | |
|
RefImpl()
|
protected |
RefImpl(Identifier[] ids,
MarshallerFactory mfactory)
Creates a Jeremie reference containing the given object identifiers and marshaller factory. |
protected |
RefImpl(SessionIdentifier ep,
Identifier[] ids,
MarshallerFactory mfactory)
Creates a Jeremie reference containing the given session identifier, object identifiers and marshaller factory. |
Method Summary | |
void |
done(java.rmi.server.RemoteCall call)
Deprecated. |
protected void |
finalize()
|
Identifier[] |
getIdentifiers()
Returns the identifiers contained in this reference. |
java.lang.String |
getRefClass(java.io.ObjectOutput out)
Not used; left for compatibility with RemoteRef |
void |
invoke(Marshaller marshaller)
Sends the marshaller with the invocation data down the protocol stack. |
void |
invoke(java.rmi.server.RemoteCall call)
Deprecated. |
java.lang.Object |
invoke(java.rmi.Remote obj,
java.lang.reflect.Method method,
java.lang.Object[] params,
long opnum)
Carries out a remote method invocation and either returns the result of the invocation is successful, otherwise an exception. |
java.rmi.server.RemoteCall |
newCall(java.rmi.server.RemoteObject obj,
java.rmi.server.Operation[] op,
int opnum,
long hash)
Deprecated. |
ReplyInterface |
prepareInvocation(Marshaller marshaller)
Prepares the marshaller prior to marshalling invocation data. |
void |
readExternal(java.io.ObjectInput stream)
Reads an external representation of this reference from an underlying object input stream. |
boolean |
remoteEquals(java.rmi.server.RemoteRef obj)
Tests for object equality (==) of this reference with the given reference. |
int |
remoteHashCode()
Returns a hashcode for this reference. |
java.lang.String |
remoteToString()
Provides a string representation of this reference. |
Marshaller |
request()
Obtains a marshaller for marshalling invocation data. |
void |
setIdentifiers(Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput stream)
Writes an external representation of this reference to an underlying object output stream. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient Identifier[] ids
protected transient MarshallerFactory mfactory
protected transient SessionIdentifier ep
protected transient Session_High session
Constructor Detail |
public RefImpl()
protected RefImpl(Identifier[] ids, MarshallerFactory mfactory)
ids
- a set of object identifiers;mfactory
- a marshaller factory.protected RefImpl(SessionIdentifier ep, Identifier[] ids, MarshallerFactory mfactory)
ep
- a session identifier;ids
- a set of object identifiers;mfactory
- a marshaller factory.Method Detail |
public void setIdentifiers(Identifier[] ids)
setIdentifiers
in interface Reference
ids
- a set of identifiers.public Identifier[] getIdentifiers()
getIdentifiers
in interface Reference
public java.lang.Object invoke(java.rmi.Remote obj, java.lang.reflect.Method method, java.lang.Object[] params, long opnum) throws java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
obj
- ignored; left for compatibility with RemoteRef
;method
- the remote method to be invoked;params
- arguments to the invocation of the remote method;opnum
- ignored; left for compatibility with RemoteRef
.
java.lang.Exception
- any exception thrown either by the remote method
invocation, or if something goes wrong (network error, etc.).public java.lang.String getRefClass(java.io.ObjectOutput out)
RemoteRef
getRefClass
in interface java.rmi.server.RemoteRef
public int remoteHashCode()
remoteHashCode
in interface java.rmi.server.RemoteRef
public boolean remoteEquals(java.rmi.server.RemoteRef obj)
remoteEquals
in interface java.rmi.server.RemoteRef
obj
- the remote reference to be compared with.
public java.lang.String remoteToString()
remoteToString
in interface java.rmi.server.RemoteRef
public Marshaller request() throws java.rmi.MarshalException
request
in interface JRMIOptRef
java.rmi.MarshalException
- if something goes wrong.public ReplyInterface prepareInvocation(Marshaller marshaller) throws java.rmi.MarshalException
prepareInvocation
in interface JRMIOptRef
marshaller
- a marshaller to be used for the invocation data;
java.rmi.MarshalException
- if something goes wrong.public void invoke(Marshaller marshaller) throws java.rmi.MarshalException
invoke
in interface JRMIOptRef
marshaller
- a marshaller with the invocation data;
java.rmi.MarshalException
- if something goes wrong.public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
stream
- the underlying object output stream.
java.io.Exception
- if something goes wrong.
java.io.IOException
public void readExternal(java.io.ObjectInput stream) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in interface java.io.Externalizable
stream
- the underlying object input stream.
java.lang.ClassNotFoundException
- if an object in the stream can not be
read because its class can not be found;
java.io.Exception
- if something else goes wrong.
java.io.IOException
public java.rmi.server.RemoteCall newCall(java.rmi.server.RemoteObject obj, java.rmi.server.Operation[] op, int opnum, long hash)
newCall
in interface java.rmi.server.RemoteRef
obj
- op
- opnum
- hash
-
public void invoke(java.rmi.server.RemoteCall call)
invoke
in interface java.rmi.server.RemoteRef
call
- public void done(java.rmi.server.RemoteCall call)
done
in interface java.rmi.server.RemoteRef
call
- protected void finalize()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |