public interface Recover
LogOps
,
OutriggerServerImpl
Modifier and Type | Method and Description |
---|---|
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.
|
void recoverSessionId(long sessionId)
sessionId
- is the value of the session id recorded from
the last call to booOp
LogOps.bootOp(long, long)
void recoverJoinState(StoredObject state) throws Exception
state
- is the stored join stateException
LogOps.joinStateOp(com.sun.jini.outrigger.StorableObject)
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)
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)
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 templatesException
- is thrown if any error occurs recovering the
registrationLogOps.registerOp(com.sun.jini.outrigger.StorableResource, java.lang.String, com.sun.jini.outrigger.StorableObject[])
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 transactionException
- is thrown if any error occurs recovering the
transactionLogOps.prepareOp(java.lang.Long, com.sun.jini.outrigger.StorableObject)
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)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.