com.sun.jini.outrigger
Interface TransactableMgr

All Superinterfaces:
TransactableConstants
All Known Implementing Classes:
Txn

interface TransactableMgr
extends TransactableConstants

This interface is implemented by entities in the system that manage a OutriggerServerImpl object's transaction state for a particular transaction. A TransactableMgr object has a list of Transactable objects which represent operations performed on the space under this transaction.

Author:
Sun Microsystems, Inc.
See Also:
OutriggerServerImpl, Transactable

Field Summary
 
Fields inherited from interface com.sun.jini.outrigger.TransactableConstants
READ, stateNames, TAKE, WRITE
 
Method Summary
 Transactable add(Transactable t)
          Add a new Transactable object to the list of transactable operations managed by this object.
 ServerTransaction getTransaction(ProxyPreparer preparer)
          Return the ServerTransaction which this manager handles.
 

Method Detail

getTransaction

ServerTransaction getTransaction(ProxyPreparer preparer)
                                 throws IOException,
                                        ClassNotFoundException
Return the ServerTransaction which this manager handles. If necessary deserialize the manager and optionally prepare it. Will only deserialize the manager if it has not already been deserialized. Will only prepare the manager if preparer is non-null and no previous call to getTransaction has succeeded. If this method throws an exception, preparation has not succeeded. If a previous call to this method has succeed, all future calls will succeed and return the same object as the first successful call.

Parameters:
preparer - the ProxyPreparer to be used to prepare the reference. May be null.
Returns:
the ServerTransaction which this manager handles.
Throws:
IOException - if the unmarshalling fails. Will also throw RemoteException if preparer.prepareProxy does.
ClassNotFoundException - if unmarshalling fails with one.
SecurityException - if preparer does.

add

Transactable add(Transactable t)
Add a new Transactable object to the list of transactable operations managed by this object.



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