|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
AgletProxy interface is a placeholder for aglets. The purpose of this interface is to provide a mechanism to control and limit direct access to aglets.
| Method Summary | |
void |
activate()
Activates the aglet. |
java.lang.Object |
clone()
Clones the aglet and its proxy. |
void |
deactivate(long duration)
Deactivates the aglet. |
void |
delegateMessage(Message msg)
Delegates a message to the aglet. |
AgletProxy |
dispatch(Ticket ticket)
Dispatches the aglet to the location specified by the ticket as the argument. |
AgletProxy |
dispatch(java.net.URL address)
Dispatches the aglet to the location specified by the argument address. |
void |
dispose()
Disposes the aglet. |
java.lang.String |
getAddress()
Gets the current address of the target aglet. |
Aglet |
getAglet()
Gets the aglet that the proxy manages. |
java.lang.String |
getAgletClassName()
Gets the aglet's class name. |
AgletID |
getAgletID()
Gets the aglet's id. |
AgletInfo |
getAgletInfo()
Gets the AgletInfo object of the aglet. |
boolean |
isActive()
Checks if the aglet is active or deactivated. |
boolean |
isRemote()
Checks if the aglet proxy is referencing a remote aglet. |
boolean |
isState(int type)
Checks if the aglet is in the state give by type. |
boolean |
isValid()
Checks if the aglet proxy is invalid or not. |
FutureReply |
sendAsyncMessage(Message msg)
Sends a message in asynchronous way. |
FutureReply |
sendFutureMessage(Message msg)
Sends a future message to the aglet. |
java.lang.Object |
sendMessage(Message msg)
Sends a message in synchronous way. |
void |
sendOnewayMessage(Message msg)
Sends a oneway message to the aglet. |
void |
suspend(long duration)
This is an experimental feature. |
| Method Detail |
public Aglet getAglet()
throws InvalidAgletException
public AgletID getAgletID()
throws InvalidAgletException
public java.lang.String getAgletClassName()
throws InvalidAgletException
public AgletInfo getAgletInfo()
throws InvalidAgletException
AgletInfo
public java.lang.String getAddress()
throws InvalidAgletException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public AgletProxy dispatch(java.net.URL address)
throws java.io.IOException,
AgletException
address - the address of the destination context.
public AgletProxy dispatch(Ticket ticket)
throws java.io.IOException,
AgletException
address - the address of the destination context.
public void dispose()
throws InvalidAgletException
public void deactivate(long duration)
throws java.io.IOException,
InvalidAgletException
duration - duration of the aglet deactivating in milliseconds.
If this is 0, it will be activeted at the next startup time.
public void activate()
throws java.io.IOException,
AgletException
public void suspend(long duration)
throws InvalidAgletException
This is almost like deactivate(long duration), but there are some differences.
duration - duration of the aglet deactivating in milliseconds.
If this is 0, it will be activeted at the next startup time.
public java.lang.Object sendMessage(Message msg)
throws InvalidAgletException,
NotHandledException,
MessageException
msg - a message to send.
public FutureReply sendAsyncMessage(Message msg)
throws InvalidAgletException
msg - a message to send.
public FutureReply sendFutureMessage(Message msg)
throws InvalidAgletException
msg - a message to send.
public void sendOnewayMessage(Message msg)
throws InvalidAgletException
msg - a message to send.
public void delegateMessage(Message msg)
throws InvalidAgletException
msg - a message to delegateAglet.handleMessage(com.ibm.aglet.Message)
public boolean isActive()
throws InvalidAgletException
public boolean isValid()
public boolean isRemote()
public boolean isState(int type)
type - an integer value specifying the aglet's stateAglet.ACTIVE,
Aglet.INACTIVE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||