|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jini.mahalo.GroupTxnManagerImpl
public class GroupTxnManagerImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.jini.landlord.Landlord |
|---|
com.sun.jini.landlord.Landlord.RenewResults |
| Nested classes/interfaces inherited from interface net.jini.core.transaction.server.TransactionManager |
|---|
net.jini.core.transaction.server.TransactionManager.Created |
| Field Summary | |
|---|---|
protected net.jini.export.Exporter |
exporter
The exporter for exporting and unexporting |
protected javax.security.auth.login.LoginContext |
loginContext
The login context, for logging out |
protected java.util.Map<java.lang.Long,GroupTxnManagerTransaction> |
txns
|
| Fields inherited from interface com.sun.jini.mahalo.TxnManager |
|---|
MAHALO |
| Fields inherited from interface net.jini.core.transaction.server.TransactionConstants |
|---|
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING |
| Fields inherited from interface com.sun.jini.constants.TimeConstants |
|---|
DAYS, HOURS, MINUTES, SECONDS |
| Method Summary | |
|---|---|
void |
abort(long id)
|
void |
abort(long id,
long waitFor)
|
void |
addLookupAttributes(net.jini.core.entry.Entry[] attrSets)
|
void |
addLookupGroups(java.lang.String[] groups)
|
void |
addLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
|
void |
cancel(net.jini.id.Uuid uuid)
Cancels the lease on a Transaction. |
java.util.Map |
cancelAll(net.jini.id.Uuid[] cookies)
Bulk cancel of leases on Transactions. |
void |
commit(long id)
|
void |
commit(long id,
long waitFor)
|
net.jini.core.transaction.server.TransactionManager.Created |
create(long lease)
|
void |
destroy()
Cleans up and exits the transaction manager. |
java.lang.Object |
getAdmin()
Returns the administration object for the transaction manager. |
protected com.sun.jini.mahalo.log.LogManager |
getLogManager()
Getter method for LogManager. |
net.jini.core.entry.Entry[] |
getLookupAttributes()
|
java.lang.String[] |
getLookupGroups()
|
net.jini.core.discovery.LookupLocator[] |
getLookupLocators()
|
java.lang.Object |
getProxy()
|
net.jini.security.TrustVerifier |
getProxyVerifier()
|
java.lang.Object |
getServiceProxy()
|
int |
getState(long id)
|
protected com.sun.jini.thread.TaskManager |
getTaskManager()
Getter method for TaskManager. |
net.jini.core.transaction.Transaction |
getTransaction(long id)
Method from TxnManager which produces
a Transaction from its ID. |
protected com.sun.jini.thread.WakeupManager |
getWakeupManager()
Getter method for WakeupManager. |
protected void |
initFailed(java.lang.Throwable e)
Log information about failing to initialize the service and rethrow the appropriate exception. |
void |
join(long id,
net.jini.core.transaction.server.TransactionParticipant part,
long crashCount)
|
net.jini.core.transaction.server.TransactionManager |
manager()
Returns a reference to the TransactionManager
interface. |
void |
modifyLookupAttributes(net.jini.core.entry.Entry[] attrSetTemplates,
net.jini.core.entry.Entry[] attrSets)
|
void |
noteUnsettledTxn(long tid)
Informs the transaction manager to attempt to settle a given transaction. |
void |
recover(long cookie,
com.sun.jini.mahalo.log.LogRecord rec)
This method recovers state changes resulting from committing a transaction. |
void |
removeLookupGroups(java.lang.String[] groups)
|
void |
removeLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
|
long |
renew(net.jini.id.Uuid uuid,
long extension)
Requests the renewal of a lease on a Transaction. |
com.sun.jini.landlord.Landlord.RenewResults |
renewAll(net.jini.id.Uuid[] cookies,
long[] extensions)
Bulk renewal request of leases on Transactions. |
void |
setLookupGroups(java.lang.String[] groups)
|
void |
setLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient java.util.Map<java.lang.Long,GroupTxnManagerTransaction> txns
protected net.jini.export.Exporter exporter
protected javax.security.auth.login.LoginContext loginContext
| Method Detail |
|---|
public net.jini.core.transaction.server.TransactionManager.Created create(long lease)
throws net.jini.core.lease.LeaseDeniedException
create in interface net.jini.core.transaction.server.TransactionManagernet.jini.core.lease.LeaseDeniedException
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.TransactionManagernet.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotJoinException
net.jini.core.transaction.server.CrashCountException
java.rmi.RemoteException
public int getState(long id)
throws net.jini.core.transaction.UnknownTransactionException
getState in interface net.jini.core.transaction.server.TransactionManagernet.jini.core.transaction.UnknownTransactionException
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.TransactionManagernet.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotCommitException
java.rmi.RemoteException
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.TransactionManagernet.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotCommitException
net.jini.core.transaction.TimeoutExpiredException
java.rmi.RemoteException
public void abort(long id)
throws net.jini.core.transaction.UnknownTransactionException,
net.jini.core.transaction.CannotAbortException
abort in interface net.jini.core.transaction.server.TransactionManagernet.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotAbortException
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.TransactionManagernet.jini.core.transaction.UnknownTransactionException
net.jini.core.transaction.CannotAbortException
net.jini.core.transaction.TimeoutExpiredException
public void recover(long cookie,
com.sun.jini.mahalo.log.LogRecord rec)
throws com.sun.jini.mahalo.log.LogException
recover in interface com.sun.jini.mahalo.log.LogRecoverycookie - the transaction's IDrec - the LogRecord
com.sun.jini.mahalo.log.LogExceptionpublic void noteUnsettledTxn(long tid)
tid - the transaction's ID
public net.jini.core.transaction.Transaction getTransaction(long id)
throws net.jini.core.transaction.UnknownTransactionException
TxnManager which produces
a Transaction from its ID.
getTransaction in interface com.sun.jini.mahalo.TxnManagerid - the ID
net.jini.core.transaction.UnknownTransactionExceptionTransaction,
TxnManager
public long renew(net.jini.id.Uuid uuid,
long extension)
throws net.jini.core.lease.UnknownLeaseException,
net.jini.core.lease.LeaseDeniedException
Transaction.
renew in interface com.sun.jini.landlord.Landlordrenew in interface com.sun.jini.landlord.LocalLandlordcookie - identifies the leased resourceextension - requested lease extension
net.jini.core.lease.UnknownLeaseException
net.jini.core.lease.LeaseDeniedExceptionLease,
LeasedResource,
LeaseManager
public void cancel(net.jini.id.Uuid uuid)
throws net.jini.core.lease.UnknownLeaseException
Transaction.
cancel in interface com.sun.jini.landlord.Landlordcancel in interface com.sun.jini.landlord.LocalLandlordcookie - identifies the leased resource
net.jini.core.lease.UnknownLeaseExceptionLease,
LeasedResource,
LeaseManager
public com.sun.jini.landlord.Landlord.RenewResults renewAll(net.jini.id.Uuid[] cookies,
long[] extensions)
Transactions.
renewAll in interface com.sun.jini.landlord.Landlordcookies - identifies the leased resourcesextensions - requested lease extensionsLease,
LeasedResource,
LeaseManagerpublic java.util.Map cancelAll(net.jini.id.Uuid[] cookies)
Transactions.
cancelAll in interface com.sun.jini.landlord.Landlordcookies - identifies the leased resourcesLease,
LeasedResource,
LeaseManagerpublic net.jini.core.transaction.server.TransactionManager manager()
TransactionManager
interface.
manager in interface com.sun.jini.mahalo.TxnManagerTransactionManagerpublic void destroy()
destroy in interface com.sun.jini.admin.DestroyAdminpublic java.lang.Object getAdmin()
getAdmin in interface net.jini.admin.Administrablepublic net.jini.core.entry.Entry[] getLookupAttributes()
getLookupAttributes in interface net.jini.admin.JoinAdminpublic void addLookupAttributes(net.jini.core.entry.Entry[] attrSets)
addLookupAttributes in interface net.jini.admin.JoinAdmin
public void modifyLookupAttributes(net.jini.core.entry.Entry[] attrSetTemplates,
net.jini.core.entry.Entry[] attrSets)
modifyLookupAttributes in interface net.jini.admin.JoinAdminpublic java.lang.String[] getLookupGroups()
getLookupGroups in interface net.jini.admin.JoinAdminpublic void addLookupGroups(java.lang.String[] groups)
addLookupGroups in interface net.jini.admin.JoinAdminpublic void removeLookupGroups(java.lang.String[] groups)
removeLookupGroups in interface net.jini.admin.JoinAdminpublic void setLookupGroups(java.lang.String[] groups)
setLookupGroups in interface net.jini.admin.JoinAdminpublic net.jini.core.discovery.LookupLocator[] getLookupLocators()
getLookupLocators in interface net.jini.admin.JoinAdmin
public void addLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
addLookupLocators in interface net.jini.admin.JoinAdminjava.rmi.RemoteException
public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
removeLookupLocators in interface net.jini.admin.JoinAdminjava.rmi.RemoteException
public void setLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
setLookupLocators in interface net.jini.admin.JoinAdminjava.rmi.RemoteExceptionpublic java.lang.Object getProxy()
getProxy in interface net.jini.export.ProxyAccessorpublic java.lang.Object getServiceProxy()
getServiceProxy in interface com.sun.jini.start.ServiceProxyAccessor
protected void initFailed(java.lang.Throwable e)
throws java.lang.Exception
e - the exception produced by the failure
java.lang.Exceptionpublic net.jini.security.TrustVerifier getProxyVerifier()
getProxyVerifier in interface net.jini.security.proxytrust.ServerProxyTrustprotected com.sun.jini.mahalo.log.LogManager getLogManager()
protected com.sun.jini.thread.TaskManager getTaskManager()
protected com.sun.jini.thread.WakeupManager getWakeupManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||