|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.awb.weakref.WeakRef | +--com.ibm.aglets.RemoteAgletRef
Fields inherited from class com.ibm.awb.weakref.WeakRef |
_table |
Constructor Summary | |
RemoteAgletRef()
|
Method Summary | |
void |
activate()
Activate the aglet |
void |
checkValidation()
|
void |
delegateMessage(Message msg)
Delegates a message |
protected Ref |
findRef()
|
protected Ref |
findRef(java.io.ObjectInputStream s)
|
java.lang.String |
getAddress()
Gets the address of the target aglet |
Aglet |
getAglet()
Gets the aglet. |
AgletInfo |
getAgletInfo()
Gets the information of the aglet |
static RemoteAgletRef |
getAgletRef(Ticket ticket,
Name n)
|
java.lang.String |
getRefClassName()
|
protected java.lang.Object |
getRefID()
|
boolean |
isActive()
Checks if it's active. |
boolean |
isRemote()
Checks if it's valid. |
boolean |
isState(int s)
Check the state |
boolean |
isValid()
Checks if it's valid. |
void |
resume()
Resume the aglet |
FutureReply |
sendFutureMessage(Message msg)
Sends a message in asynchronous way. |
java.lang.Object |
sendMessage(Message msg)
Sends a message in synchronous way. |
void |
sendOnewayMessage(Message msg)
Sends a oneway message |
static void |
showRefTable(java.io.PrintStream out)
|
java.lang.String |
toString()
|
void |
writeInfo(java.io.ObjectOutputStream s)
|
Methods inherited from class com.ibm.awb.weakref.WeakRef |
getRef, referenced, setRef, unreferenced, updateRef |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.awb.weakref.Ref |
getRef, referenced, setRef, unreferenced |
Constructor Detail |
public RemoteAgletRef()
Method Detail |
public void activate() throws java.io.IOException, AgletException
AgletRef
activate
in interface AgletRef
public void checkValidation() throws InvalidAgletException
checkValidation
in interface AgletRef
public void delegateMessage(Message msg) throws InvalidAgletException
delegateMessage
in interface AgletRef
protected Ref findRef()
findRef
in class WeakRef
protected Ref findRef(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
findRef
in class WeakRef
public java.lang.String getAddress() throws InvalidAgletException
getAddress
in interface AgletRef
com.ibm.aglets.AgletRef
public Aglet getAglet() throws InvalidAgletException
getAglet
in interface AgletRef
java.lang.SecurityException
- if the current execution is not allowed.public AgletInfo getAgletInfo()
getAgletInfo
in interface AgletRef
public static RemoteAgletRef getAgletRef(Ticket ticket, Name n)
public java.lang.String getRefClassName()
getRefClassName
in interface Ref
protected java.lang.Object getRefID()
getRefID
in class WeakRef
public boolean isActive()
AgletRef
isActive
in interface AgletRef
public boolean isRemote()
AgletRef
isRemote
in interface AgletRef
public boolean isState(int s)
isState
in interface AgletRef
public boolean isValid()
AgletRef
isValid
in interface AgletRef
public void resume() throws AgletException
AgletRef
resume
in interface AgletRef
public FutureReply sendFutureMessage(Message msg) throws InvalidAgletException
sendFutureMessage
in interface AgletRef
msg
- the message to sendpublic java.lang.Object sendMessage(Message msg) throws MessageException, InvalidAgletException, NotHandledException
sendMessage
in interface AgletRef
msg
- the message to sendpublic void sendOnewayMessage(Message msg) throws InvalidAgletException
sendOnewayMessage
in interface AgletRef
msg
- the message to sendpublic static void showRefTable(java.io.PrintStream out)
public java.lang.String toString()
toString
in class WeakRef
public void writeInfo(java.io.ObjectOutputStream s) throws java.io.IOException
writeInfo
in interface Ref
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |