com.sun.jini.mercury
Class ActivatableMercuryImpl

java.lang.Object
  extended by com.sun.jini.mercury.MailboxImpl
      extended by com.sun.jini.mercury.ActivatableMercuryImpl
All Implemented Interfaces:
DestroyAdmin, TimeConstants, Landlord, MailboxAdmin, MailboxBackEnd, ServiceProxyAccessor, Remote, Administrable, JoinAdmin, EventMailbox, PullEventMailbox, ProxyAccessor, ServerProxyTrust

 class ActivatableMercuryImpl
extends MailboxImpl

Convenience class intended for use with the ServiceStarter framework to start an implementation of Mercury 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 class com.sun.jini.mercury.MailboxImpl
MailboxImpl.NotifyTask
 
Nested classes/interfaces inherited from interface com.sun.jini.landlord.Landlord
Landlord.RenewResults
 
Field Summary
 
Fields inherited from class com.sun.jini.mercury.MailboxImpl
adminLogger, deliveryLogger, expirationLogger, exporter, initLogger, leaseLogger, loginContext, MERCURY, operationsLogger, persistenceLogger, receiveLogger, recoveryLogger, startupLogger
 
Fields inherited from interface com.sun.jini.constants.TimeConstants
DAYS, HOURS, MINUTES, SECONDS
 
Constructor Summary
ActivatableMercuryImpl(ActivationID activationID, MarshalledObject data)
          Constructs a new instance of MailboxImpl that is activatable, and which will persist its state.
 
Method Summary
 
Methods inherited from class com.sun.jini.mercury.MailboxImpl
addLookupAttributes, addLookupGroups, addLookupLocators, addUnknownEvents, cancel, cancelAll, destroy, disableDelivery, enableDelivery, getAdmin, getLookupAttributes, getLookupGroups, getLookupLocators, getNextBatch, getProxy, getProxyVerifier, getRemoteEvents, getServiceProxy, initFailed, modifyLookupAttributes, notify, pullRegister, register, 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

ActivatableMercuryImpl

ActivatableMercuryImpl(ActivationID activationID,
                       MarshalledObject data)
                 throws Exception
Constructs a new instance of MailboxImpl 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.