|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.stub.Stub
public class Stub
Super class of the stub classes generated by the RmiStubFactory.
A stub gives access to an interface of a Fractal component.
More precisely, it gives access to the "functional" interface provided by
a server interface, and also gives access to the Interface interface
implemented by this server interface. The
"functional" interface is implemented by a sub class of this class, while
the Interface interface is implemented
by this class once and for all.
| Field Summary | |
|---|---|
protected Identifier |
id
The identifier of the remote object to which this stub gives access. |
protected MarshallerFactory |
marshallerFactory
The marshaller factory to be used to create new invocation messages. |
protected Session_High |
session
The session that gives access to the remote object. |
protected SessionIdentifier |
sessionId
The identifier of the session that gives access to the remote object. |
| Constructor Summary | |
|---|---|
Stub()
Constructs a new Stub. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Tests if the given object is equal to this stub. |
protected void |
finalize()
Finalizes this object. |
java.lang.String |
getFcItfName()
|
org.objectweb.fractal.api.Component |
getFcItfOwner()
|
org.objectweb.fractal.api.Type |
getFcItfType()
|
Identifier[] |
getIdentifiers()
Returns the set of identifiers associated with this reference. |
protected java.lang.Exception |
handleException(java.lang.Exception e)
Handles an exception that happen in this stub. |
int |
hashCode()
Returns the hashcode of this stub. |
protected void |
invoke(Marshaller marshaller)
Sends the marshaller with the invocation data down the protocol stack. |
boolean |
isFcInternalItf()
|
protected ReplyInterface |
prepareInvocation(Marshaller marshaller)
Prepares the marshaller prior to marshalling invocation data. |
protected java.lang.Object |
replaceClassName(java.lang.Object o)
|
protected java.lang.Object |
replaceClassValue(java.lang.Object o)
|
protected Marshaller |
request()
Obtains a marshaller for marshalling invocation data. |
void |
setIdentifiers(Identifier[] ids)
Sets the set of identifiers associated with this reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Identifier id
protected MarshallerFactory marshallerFactory
protected SessionIdentifier sessionId
protected Session_High session
| Constructor Detail |
|---|
public Stub()
Stub.
| Method Detail |
|---|
public Identifier[] getIdentifiers()
getIdentifiers in interface ReferencesetIdentifiers(org.objectweb.jonathan.apis.binding.Identifier[])public void setIdentifiers(Identifier[] ids)
setIdentifiers in interface Referenceids - the set of identifiers to be associated with this reference.getIdentifiers()public org.objectweb.fractal.api.Component getFcItfOwner()
getFcItfOwner in interface org.objectweb.fractal.api.Interfacepublic java.lang.String getFcItfName()
getFcItfName in interface org.objectweb.fractal.api.Interfacepublic org.objectweb.fractal.api.Type getFcItfType()
getFcItfType in interface org.objectweb.fractal.api.Interfacepublic boolean isFcInternalItf()
isFcInternalItf in interface org.objectweb.fractal.api.Interface
protected Marshaller request()
throws MarshalException
MarshalException - if something goes wrong.
protected ReplyInterface prepareInvocation(Marshaller marshaller)
throws MarshalException
marshaller - a marshaller to be used for the invocation data.
MarshalException - if something goes wrong.
protected void invoke(Marshaller marshaller)
throws MarshalException
marshaller - a marshaller with the invocation data.
MarshalException - if something goes wrong.protected java.lang.Exception handleException(java.lang.Exception e)
e - an exception.
ServerException, i.e., an exception that was
thrown by the remote object and sent back in a reply message), or a
new RemoteException encaspulating the given
exception in the other cases (case of an exception that was thrown
locally by the stub itself).
protected java.lang.Object replaceClassName(java.lang.Object o)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprotected java.lang.Object replaceClassValue(java.lang.Object o)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared to this stub.
id is
equal to the id of this stub, false otherwise.public int hashCode()
hashCode in class java.lang.Objectid of this stub.protected void finalize()
session
associated to this stub if it is not null.
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||