|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Transaction s. |
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 Transaction s. |
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.TransactionManager
net.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.TransactionManager
net.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.TransactionManager
net.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.TransactionManager
net.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.TransactionManager
net.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.TransactionManager
net.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.TransactionManager
net.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.LogRecovery
cookie
- the transaction's IDrec
- the LogRecord
com.sun.jini.mahalo.log.LogException
public void noteUnsettledTxn(long tid)
tid
- the transaction's IDpublic 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.TxnManager
id
- the ID
net.jini.core.transaction.UnknownTransactionException
Transaction
,
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.Landlord
renew
in interface com.sun.jini.landlord.LocalLandlord
cookie
- identifies the leased resourceextension
- requested lease extension
net.jini.core.lease.UnknownLeaseException
net.jini.core.lease.LeaseDeniedException
Lease
,
LeasedResource
,
LeaseManager
public void cancel(net.jini.id.Uuid uuid) throws net.jini.core.lease.UnknownLeaseException
Transaction
.
cancel
in interface com.sun.jini.landlord.Landlord
cancel
in interface com.sun.jini.landlord.LocalLandlord
cookie
- identifies the leased resource
net.jini.core.lease.UnknownLeaseException
Lease
,
LeasedResource
,
LeaseManager
public com.sun.jini.landlord.Landlord.RenewResults renewAll(net.jini.id.Uuid[] cookies, long[] extensions)
Transaction
s.
renewAll
in interface com.sun.jini.landlord.Landlord
cookies
- identifies the leased resourcesextensions
- requested lease extensionsLease
,
LeasedResource
,
LeaseManager
public java.util.Map cancelAll(net.jini.id.Uuid[] cookies)
Transaction
s.
cancelAll
in interface com.sun.jini.landlord.Landlord
cookies
- identifies the leased resourcesLease
,
LeasedResource
,
LeaseManager
public net.jini.core.transaction.server.TransactionManager manager()
TransactionManager
interface.
manager
in interface com.sun.jini.mahalo.TxnManager
TransactionManager
public void destroy()
destroy
in interface com.sun.jini.admin.DestroyAdmin
public java.lang.Object getAdmin()
getAdmin
in interface net.jini.admin.Administrable
public net.jini.core.entry.Entry[] getLookupAttributes()
getLookupAttributes
in interface net.jini.admin.JoinAdmin
public 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.JoinAdmin
public java.lang.String[] getLookupGroups()
getLookupGroups
in interface net.jini.admin.JoinAdmin
public void addLookupGroups(java.lang.String[] groups)
addLookupGroups
in interface net.jini.admin.JoinAdmin
public void removeLookupGroups(java.lang.String[] groups)
removeLookupGroups
in interface net.jini.admin.JoinAdmin
public void setLookupGroups(java.lang.String[] groups)
setLookupGroups
in interface net.jini.admin.JoinAdmin
public 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.JoinAdmin
java.rmi.RemoteException
public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locators) throws java.rmi.RemoteException
removeLookupLocators
in interface net.jini.admin.JoinAdmin
java.rmi.RemoteException
public void setLookupLocators(net.jini.core.discovery.LookupLocator[] locators) throws java.rmi.RemoteException
setLookupLocators
in interface net.jini.admin.JoinAdmin
java.rmi.RemoteException
public java.lang.Object getProxy()
getProxy
in interface net.jini.export.ProxyAccessor
public 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.Exception
public net.jini.security.TrustVerifier getProxyVerifier()
getProxyVerifier
in interface net.jini.security.proxytrust.ServerProxyTrust
protected 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 |