com.sun.jini.mahalo
Class ActivatableMahaloImpl

java.lang.Object
  extended by com.sun.jini.mahalo.TxnManagerImpl
      extended by com.sun.jini.mahalo.ActivatableMahaloImpl
All Implemented Interfaces:
DestroyAdmin, TimeConstants, Landlord, LocalLandlord, LeaseExpirationMgr.Expirer, LogRecovery, TxnManager, TxnSettler, ServiceProxyAccessor, Remote, Administrable, JoinAdmin, TransactionConstants, TransactionManager, ProxyAccessor, ServerProxyTrust

 class ActivatableMahaloImpl
extends TxnManagerImpl

Convenience class intended for use with the ServiceStarter framework to start an implementation of Mahalo that is activatable, and which will log its state information to persistent storage.

Since:
2.0
Author:
Sun Microsystems, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jini.landlord.Landlord
Landlord.RenewResults
 
Nested classes/interfaces inherited from interface net.jini.core.transaction.server.TransactionManager
TransactionManager.Created
 
Field Summary
 
Fields inherited from class com.sun.jini.mahalo.TxnManagerImpl
destroyLogger, exporter, initLogger, loginContext, operationsLogger, participantLogger, persistenceLogger, startupLogger, transactionsLogger
 
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
 
Constructor Summary
ActivatableMahaloImpl(ActivationID activationID, MarshalledObject data)
          Constructs a new instance of TxnManagerImpl that is activatable, and which will persist its state.
 
Method Summary
 
Methods inherited from class com.sun.jini.mahalo.TxnManagerImpl
abort, abort, addLookupAttributes, addLookupGroups, addLookupLocators, cancel, cancelAll, commit, commit, create, destroy, getAdmin, getLookupAttributes, getLookupGroups, getLookupLocators, getProxy, getProxyVerifier, getServiceProxy, getState, getTransaction, initFailed, join, manager, modifyLookupAttributes, nextID, noteUnsettledTxn, recover, removeLookupGroups, removeLookupLocators, renew, renewAll, setLookupGroups, setLookupLocators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivatableMahaloImpl

ActivatableMahaloImpl(ActivationID activationID,
                      MarshalledObject data)
                throws Exception
Constructs a new instance of TxnManagerImpl that is activatable, and which will persist its state.

A constructor having this signature is required for the class to be activatable. This constructor is automatically called by the activation group when the service is activated.

Parameters:
activationID - the activation ID generated by the activation system and assigned to the instance of the server being activated
data - state data (represented as a MarshalledObject) which is needed to re-activate this server
Throws:
Exception - If there was a problem initializing the service.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.