|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.awb.weakref.VirtualRef
com.ibm.aglets.AgletProxyImpl
| Nested Class Summary |
| Nested classes inherited from class com.ibm.awb.weakref.VirtualRef |
VirtualRef.NullRef |
| Field Summary | |
(package private) static long |
serialVersionUID
|
| Fields inherited from class com.ibm.awb.weakref.VirtualRef |
|
| Constructor Summary | |
(package private) |
AgletProxyImpl(AgletRef ref)
|
| Method Summary | |
void |
activate()
Activates the aglet. |
java.lang.Object |
clone()
Clones the aglet proxy. |
void |
deactivate(long duration)
Deactivate aglet till the specified date. |
void |
delegateMessage(Message msg)
Delegates a message |
AgletProxy |
dispatch(Ticket ticket)
Dispatches the aglet to the location specified by the ticket as the argument. |
AgletProxy |
dispatch(java.net.URL url)
Dispatches the aglet to the location specified by the argument address. |
void |
dispose()
Disposes the aglet. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAddress()
Gets the aglet's class name. |
Aglet |
getAglet()
Gets the aglet. |
java.lang.String |
getAgletClassName()
Gets the aglet's class name. |
AgletID |
getAgletID()
Gets the aglet's id |
AgletInfo |
getAgletInfo()
Gets the information of the aglet |
(package private) AgletRef |
getAgletRef()
|
java.net.URL |
getCodeBase()
Gets the URL of the aglet's class. |
int |
hashCode()
|
boolean |
isActive()
Checks if the aglet is active or deactivated. |
boolean |
isRemote()
Checks if it's remote |
boolean |
isState(int state)
Checks if the aglet is in the state give by type. |
boolean |
isValid()
Checks if it's valid. |
void |
resume()
|
FutureReply |
sendAsyncMessage(Message msg)
Sends a message in asynchronous way. |
FutureReply |
sendFutureMessage(Message msg)
Sends a future message in asynchronous way. |
java.lang.Object |
sendMessage(Message msg)
Sends a message in synchronous way. |
void |
sendOnewayMessage(Message msg)
Sends a oneway message |
void |
suspend(long duration)
Suspend the aglet. |
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.awb.weakref.VirtualRef |
finalize, getCurrentRef, getRef, setRef |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
| Constructor Detail |
AgletProxyImpl(AgletRef ref)
| Method Detail |
public void activate()
throws java.io.IOException,
AgletException
AgletProxy
activate in interface AgletProxyAgletException - if the aglet is not valid.
java.io.IOException - if the activation failed.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface AgletProxyjava.lang.CloneNotSupportedException - if the cloning fails.
InvalidAgletException - if the aglet is invalid.
public void deactivate(long duration)
throws java.io.IOException,
InvalidAgletException
deactivate in interface AgletProxyduration - duration of the aglet deactivating in milliseconds.
If this is 0, it will be activeted at the next startup time.
AgletEception - if can not deactivate the aglet.
InvalidAgletException - if the aglet is not valid.
java.io.IOException
public void delegateMessage(Message msg)
throws InvalidAgletException
delegateMessage in interface AgletProxymsg - a message to delegate
InvalidAgletException - if the aglet proxy is not valid.Aglet.handleMessage(com.ibm.aglet.Message)
public AgletProxy dispatch(Ticket ticket)
throws java.io.IOException,
AgletException
AgletProxy
dispatch in interface AgletProxyjava.io.IOException
AgletException
public AgletProxy dispatch(java.net.URL url)
throws java.io.IOException,
AgletException
AgletProxy
dispatch in interface AgletProxyurl - the address of the destination context.
java.io.IOException
AgletException
public void dispose()
throws InvalidAgletException
dispose in interface AgletProxyInvalidAgletException - if the aglet is invalid.public boolean equals(java.lang.Object obj)
equals in class VirtualRef
public java.lang.String getAddress()
throws InvalidAgletException
getAddress in interface AgletProxyInvalidAgletException
public Aglet getAglet()
throws InvalidAgletException
getAglet in interface AgletProxyjava.lang.SecurityException - if the current execution is not allowed.
InvalidAgletException - if the aglet is not valid.
public java.lang.String getAgletClassName()
throws InvalidAgletException
getAgletClassName in interface AgletProxyInvalidAgletException - if the aglet is not valid.
public AgletID getAgletID()
throws InvalidAgletException
getAgletID in interface AgletProxyInvalidAgletException - if the aglet is not valid.
public AgletInfo getAgletInfo()
throws InvalidAgletException
getAgletInfo in interface AgletProxyInvalidAgletException - if the aglet is not valid.AgletInfoAgletRef getAgletRef()
public java.net.URL getCodeBase()
throws InvalidAgletException
InvalidAgletExceptionpublic int hashCode()
public boolean isActive()
AgletProxy
isActive in interface AgletProxypublic boolean isRemote()
isRemote in interface AgletProxypublic boolean isState(int state)
AgletProxy
isState in interface AgletProxystate - an integer value specifying the aglet's state
Aglet.ACTIVE,
Aglet.INACTIVEpublic boolean isValid()
isValid in interface AgletProxy
public void resume()
throws AgletException
AgletException
public FutureReply sendAsyncMessage(Message msg)
throws InvalidAgletException
sendAsyncMessage in interface AgletProxymsg - the message to send
InvalidAgletException - if the aglet is not valid any longer.
public FutureReply sendFutureMessage(Message msg)
throws InvalidAgletException
sendFutureMessage in interface AgletProxymsg - the message to send
InvalidAgletException - if the aglet is not valid any longer.
public java.lang.Object sendMessage(Message msg)
throws MessageException,
InvalidAgletException,
NotHandledException
sendMessage in interface AgletProxymsg - the message to send
NotHandledException - if the aglet didn't handle the
the message.
InvalidAgletException - if the aglet is not valid any longer.
MessageException - a exception
which the handleMessage method raised.
public void sendOnewayMessage(Message msg)
throws InvalidAgletException
sendOnewayMessage in interface AgletProxymsg - the message to send
InvalidAgletException - if the aglet is not valid any longer.
public void suspend(long duration)
throws InvalidAgletException
suspend in interface AgletProxyduration - duration of the aglet deactivating in milliseconds.
If this is 0, it will be activeted at the next startup time.
AgletEception - if can not suspend the aglet.
java.lang.IllegalArgumentException - if the minutes parameter is negative.
InvalidAgletExceptionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||