com.sun.jini.outrigger
Class PersistentOutriggerImpl

java.lang.Object
  extended by com.sun.jini.outrigger.OutriggerServerWrapper
      extended by com.sun.jini.outrigger.PersistentOutriggerImpl
All Implemented Interfaces:
DestroyAdmin, Landlord, OutriggerAdmin, OutriggerServer, ServiceProxyAccessor, Remote, JoinAdmin, TransactionConstants, TransactionParticipant, ProxyAccessor, ServerProxyTrust

 class PersistentOutriggerImpl
extends OutriggerServerWrapper

OutriggerServerWrapper subclass for persistent servers.

Since:
2.0
Author:
Sun Microsystems, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jini.outrigger.OutriggerServer
OutriggerServer.QueryCookie
 
Nested classes/interfaces inherited from interface com.sun.jini.landlord.Landlord
Landlord.RenewResults
 
Field Summary
 
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
 
Constructor Summary
PersistentOutriggerImpl(ActivationID activationID, MarshalledObject data)
          Create a new incarnation of an activatable OutriggerServerImpl server.
PersistentOutriggerImpl(String[] configArgs, LifeCycle lifeCycle)
          Create a new non-activatable, persistent space.
 
Method Summary
 
Methods inherited from class com.sun.jini.outrigger.OutriggerServerWrapper
abort, addLookupAttributes, addLookupGroups, addLookupLocators, allowCalls, cancel, cancelAll, close, commit, contents, contents, delete, destroy, getAdmin, getLookupAttributes, getLookupGroups, getLookupLocators, getProxy, getProxyVerifier, getServiceProxy, holdCalls, modifyLookupAttributes, nextBatch, nextReps, notify, prepare, prepareAndCommit, read, readIfExists, registerForAvailabilityEvent, rejectCalls, removeLookupGroups, removeLookupLocators, renew, renewAll, setLookupGroups, setLookupLocators, space, take, take, takeIfExists, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentOutriggerImpl

PersistentOutriggerImpl(ActivationID activationID,
                        MarshalledObject data)
                  throws IOException,
                         ConfigurationException,
                         LoginException,
                         ActivationException,
                         ClassNotFoundException
Create a new incarnation of an activatable OutriggerServerImpl server.

Parameters:
activationID - of the server, may be null.
data - an array of Strings (packaged in a marshalled object) that will be used to obtain a Configuration.
Throws:
IOException - if there is problem recovering data from disk, exporting the server, or unpacking data.
ClassCastException - if the value of data.get() is not an array of Strings.
ConfigurationException - if the Configuration is malformed.
ActivationException - if activatable and there is a problem getting a reference to the activation system.
LoginException - if the loginContext specified in the configuration is non-null and throws an exception when login is attempted.
ClassNotFoundException - if the classes of the objects encapsulated inside data can not be found.

PersistentOutriggerImpl

PersistentOutriggerImpl(String[] configArgs,
                        LifeCycle lifeCycle)
                  throws IOException,
                         ConfigurationException,
                         LoginException
Create a new non-activatable, persistent space. The space will be implemented by a new OutriggerServerImpl() server instance.

Parameters:
configArgs - set of strings to be used to obtain a Configuration.
lifeCycle - the object to notify when this service is destroyed.
Throws:
IOException - if there is problem recovering data from disk or exporting the server for the space.
ConfigurationException - if the configuration is malformed.
LoginException - if the loginContext specified in the configuration is non-null and throws an exception when login is attempted.


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