com.sun.jini.fiddler
Class ActivatableFiddlerImpl

java.lang.Object
  extended by com.sun.jini.fiddler.FiddlerImpl
      extended by com.sun.jini.fiddler.ActivatableFiddlerImpl
All Implemented Interfaces:
DestroyAdmin, Fiddler, FiddlerAdmin, ServiceProxyAccessor, Remote, Administrable, JoinAdmin, ProxyAccessor, ServerProxyTrust

 class ActivatableFiddlerImpl
extends FiddlerImpl

Convenience class intended for use with the ServiceStarter framework to start an implementation of Fiddler 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.fiddler.FiddlerImpl
FiddlerImpl.LocatorGroupsStruct
 
Field Summary
 
Fields inherited from class com.sun.jini.fiddler.FiddlerImpl
discardLogger, eventsLogger, groupsLogger, leaseLogger, locatorsLogger, persistLogger, problemLogger, registrationLogger, startupLogger, tasksLogger
 
Constructor Summary
ActivatableFiddlerImpl(ActivationID activationID, MarshalledObject data)
          Constructs a new instance of FiddlerImpl that is activatable, and which will persist its state.
 
Method Summary
 
Methods inherited from class com.sun.jini.fiddler.FiddlerImpl
addGroups, addLocators, addLookupAttributes, addLookupGroups, addLookupLocators, cancelLease, cancelLeases, destroy, discard, getAdmin, getGroups, getLeaseBound, getLocators, getLookupAttributes, getLookupGroups, getLookupLocators, getPersistenceSnapshotThreshold, getPersistenceSnapshotWeight, getProxy, getProxyID, getProxyVerifier, getRegistrars, getServiceProxy, modifyLookupAttributes, register, removeGroups, removeLocators, removeLookupGroups, removeLookupLocators, renewLease, renewLeases, setGroups, setLeaseBound, setLocators, setLookupGroups, setLookupLocators, setPersistenceSnapshotThreshold, setPersistenceSnapshotWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivatableFiddlerImpl

ActivatableFiddlerImpl(ActivationID activationID,
                       MarshalledObject data)
                 throws IOException,
                        ActivationException,
                        ConfigurationException,
                        LoginException,
                        ClassNotFoundException
Constructs a new instance of FiddlerImpl 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:
IOException - this exception can occur when there is a problem recovering data from disk, exporting the server that's being activated, or when unmarshalling the given data parameter.
ConfigurationException - this exception can occur when a problem occurs while retrieving an item from the Configuration generated from the contents of the given data parameter
ActivationException - this exception can occur when a problem occurs while activating the service
LoginException - this exception occurs when authentication fails while performing a JAAS login for this service
ClassNotFoundException - this exception can occur while unmarshalling the given data parameter; when a class needed in the unmarshalling process cannot be found.
ClassCastException - this exception can occur while unmarshalling the given data parameter; when the contents of that parameter is not a String array.


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