|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Methods that recover the state of the space after a restart.
LogOps,
OutriggerServerImpl| Method Summary | |
void |
recoverJoinState(StoredObject state)
Recover the join state from the previous session. |
void |
recoverRegister(StoredResource registration,
String type,
StoredObject[] templates)
Recover an event registration. |
void |
recoverSessionId(long sessionId)
Recover the session id from the previous session. |
void |
recoverTake(Uuid cookie,
Long txnId)
Recover a take operation. |
void |
recoverTransaction(Long txnId,
StoredObject transaction)
Recover a prepared transaction. |
void |
recoverUuid(Uuid uuid)
Recover the Uuid for the service as a whole.
|
void |
recoverWrite(StoredResource entry,
Long txnId)
Recover a write operation. |
| Method Detail |
public void recoverSessionId(long sessionId)
sessionId - is the value of the session id recorded from
the last call to booOpLogOps.bootOp(long, long)
public void recoverJoinState(StoredObject state)
throws Exception
state - is the stored join state
ExceptionLogOps.joinStateOp(com.sun.jini.outrigger.StorableObject)
public void recoverWrite(StoredResource entry,
Long txnId)
throws Exception
entry is the
stored form of the entry passed into writeOp. If the
original write was done under a transaction, and the transaction
was prepared txnId will be non-null.
entry - stored from of the written entrytxnId - transaction identifier or null
Exception - is thrown if any error occurs recovering the
writeLogOps.writeOp(com.sun.jini.outrigger.StorableResource, java.lang.Long)
public void recoverTake(Uuid cookie,
Long txnId)
throws Exception
txnId
will be non-null.
cookie - identifier of the entry to taketxnId - transaction identifier or null
Exception - is thrown if any error occurs recovering the takeLogOps.takeOp(net.jini.id.Uuid, java.lang.Long)
public void recoverRegister(StoredResource registration,
String type,
StoredObject[] templates)
throws Exception
registration is the stored form of the
registration passed into registerOp. The recovered
template is the stored form of the template.
registration - stored from of the logged registrationtype - of registration, same value that was passed into
corresponding registerOp calltemplates - stored from of the logged templates
Exception - is thrown if any error occurs recovering the
registrationLogOps.registerOp(com.sun.jini.outrigger.StorableResource, java.lang.String, com.sun.jini.outrigger.StorableObject[])
public void recoverTransaction(Long txnId,
StoredObject transaction)
throws Exception
transaction is the stored form of the transaction
passed into prepareOp.
txnId - transaction identifiertransaction - stored from of the prepared transaction
Exception - is thrown if any error occurs recovering the
transactionLogOps.prepareOp(java.lang.Long, com.sun.jini.outrigger.StorableObject)public void recoverUuid(Uuid uuid)
Uuid for the service as a whole.
Will only be called if a Uuid has be stored during
a previous incarnation.
uuid - The Uuid being recovered.LogOps.uuidOp(net.jini.id.Uuid)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||