|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sometimes an object needs to know that it is about to move or has just been moved. For example, a persistent mobile object may need to remove itself from the origin's persistent store and add itself to the destination's persistent store. Voyager provides this capability through the IMobile interface. If an object or any of its parts implements the IMobile interface, then it will receive callbacks during a move in the following order: preDeparture(), preArrival(), postArrival(), postDeparture().
Method Summary | |
void |
postArrival()
At this point, the copy of the object has become the real object, the object at the source has become the stale object, and the move is deemed successful and cannot be aborted. |
void |
postDeparture()
This method is executed on the original stale object at the source, and is typically defined to perform activities such as removing the stale object from persistence. |
void |
preArrival()
This method is executed on the copy of the object at the destination. |
void |
preDeparture(java.lang.String source,
java.lang.String destination)
This method is executed on the original object at the source. |
Method Detail |
public void preDeparture(java.lang.String source, java.lang.String destination) throws MobilityException
public void postDeparture()
public void preArrival() throws MobilityException
public void postArrival()
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |