|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mahalo.PassiveGroupMahalo
public class PassiveGroupMahalo
This class is to be used together with the
com.sun.jini.start.ServiceStarter
framework to start
a group enabled transient implementation of Mahalo.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jini.core.transaction.server.TransactionManager |
---|
net.jini.core.transaction.server.TransactionManager.Created |
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener |
---|
jgroup.core.MembershipListener.AllowDuplicateViews |
Field Summary |
---|
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants |
---|
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING |
Constructor Summary | |
---|---|
PassiveGroupMahalo(java.lang.String[] configArgs,
com.sun.jini.start.LifeCycle lifeCycle)
Constructs a transaction manager with replication support. |
Method Summary | |
---|---|
void |
abort(long id)
|
void |
abort(long id,
long waitFor)
|
void |
commit(long id)
|
void |
commit(long id,
long waitFor)
|
net.jini.core.transaction.server.TransactionManager.Created |
create(long lease)
|
protected static InternalPassiveGroupTransactionManager |
getIPGTM()
Get an InternalPassiveGroupTransactionManager. |
int |
getState(long id)
|
java.lang.Object |
getState(jgroup.core.MemberId[] dests)
|
void |
hasLeft()
|
void |
internalCommit(long id)
|
void |
internalCreate(java.lang.Object txnMgr,
long id)
Transfers the non-deterministic state of the txn create to other members of the group. |
void |
join(long id,
net.jini.core.transaction.server.TransactionParticipant part,
long crashCount)
FIXME: This should be "passively" replicated as well. |
void |
prepareChange()
|
void |
printTxns(java.util.Map<java.lang.Long,GroupTxnManagerTransaction> txns)
Prints transactions debug/state info. |
void |
putState(java.lang.Object state,
jgroup.core.MemberId[] sources)
|
java.lang.String |
toString()
|
void |
transCommitted(long id)
|
void |
transPrepared(java.lang.Object txnMgr,
long tid)
Transfers the state of the txn to other members of the group. |
void |
viewChange(jgroup.core.View view)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PassiveGroupMahalo(java.lang.String[] configArgs, com.sun.jini.start.LifeCycle lifeCycle) throws java.lang.Exception
configArgs
- String
array whose elements are
the arguments to use when creating the server.lifeCycle
- instance of LifeCycle
that, if
non-null
, will cause this object's
unregister
method to be invoked during
shutdown to notify the service starter framework that
the reference to this service's implementation can be
'released' for garbage collection. A value of
null
for this argument is allowed.
java.lang.Exception
- If there was a problem initializing the service.Method Detail |
---|
public void viewChange(jgroup.core.View view)
viewChange
in interface jgroup.core.MembershipListener
public void prepareChange()
prepareChange
in interface jgroup.core.MembershipListener
public void hasLeft()
hasLeft
in interface jgroup.core.MembershipListener
@Anycast public net.jini.core.transaction.server.TransactionManager.Created create(long lease) throws net.jini.core.lease.LeaseDeniedException, java.rmi.RemoteException
create
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.lease.LeaseDeniedException
java.rmi.RemoteException
@Atomic public void join(long id, net.jini.core.transaction.server.TransactionParticipant part, long crashCount) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotJoinException, net.jini.core.transaction.server.CrashCountException, java.rmi.RemoteException
join
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotJoinException
net.jini.core.transaction.server.CrashCountException
java.rmi.RemoteException
@Anycast public int getState(long id) throws net.jini.core.transaction.UnknownTransactionException
getState
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
@Anycast public void commit(long id) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotCommitException, java.rmi.RemoteException
commit
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotCommitException
java.rmi.RemoteException
@Anycast public void commit(long id, long waitFor) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotCommitException, net.jini.core.transaction.TimeoutExpiredException, java.rmi.RemoteException
commit
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotCommitException
net.jini.core.transaction.TimeoutExpiredException
java.rmi.RemoteException
@Anycast public void abort(long id) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotAbortException
abort
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotAbortException
@Anycast public void abort(long id, long waitFor) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotAbortException, net.jini.core.transaction.TimeoutExpiredException
abort
in interface net.jini.core.transaction.server.TransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotAbortException
net.jini.core.transaction.TimeoutExpiredException
public java.lang.Object getState(jgroup.core.MemberId[] dests)
public void putState(java.lang.Object state, jgroup.core.MemberId[] sources)
public void transPrepared(java.lang.Object txnMgr, long tid) throws java.rmi.RemoteException
InternalPassiveGroupTransactionManager
transPrepared
in interface InternalPassiveGroupTransactionManager
txnMgr
- The TxnManagerTransaction
objecttid
- Transaction id of current transaction
java.rmi.RemoteException
public void transCommitted(long id) throws net.jini.core.transaction.UnknownTransactionException, java.rmi.RemoteException
transCommitted
in interface InternalPassiveGroupTransactionManager
net.jini.core.transaction.UnknownTransactionException
java.rmi.RemoteException
public void printTxns(java.util.Map<java.lang.Long,GroupTxnManagerTransaction> txns)
public java.lang.String toString()
toString
in class java.lang.Object
protected static InternalPassiveGroupTransactionManager getIPGTM()
public void internalCreate(java.lang.Object txnMgr, long id) throws java.rmi.RemoteException
InternalGroupTransactionManager
internalCreate
in interface InternalGroupTransactionManager
txnMgr
- The TxnManagerTransaction
objectid
- Transaction id of current transaction
java.rmi.RemoteException
public void internalCommit(long id) throws net.jini.core.transaction.UnknownTransactionException, net.jini.core.transaction.CannotCommitException, java.rmi.RemoteException
internalCommit
in interface InternalGroupTransactionManager
net.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotCommitException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |