org.apache.jackrabbit.rmi.server
Class ServerXASession

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerSession
                      extended by org.apache.jackrabbit.rmi.server.ServerXASession
All Implemented Interfaces:
Serializable, Remote, RemoteSession, RemoteXASession

public class ServerXASession
extends ServerSession
implements RemoteXASession

Remote adapter for XA-enabled sessions.

Since:
1.4
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerXASession(Session session, XAResource resource, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local, transaction enabled, session.
 
Method Summary
 void commit(Xid xid, boolean onePhase)
          Remote version of the XAResource.commit(Xid, boolean) method.
 void end(Xid xid, int flags)
          Remote version of the XAResource.end(Xid, int) method.
 void forget(Xid xid)
          Remote version of the XAResource.forget(Xid) method.
 int getTransactionTimeout()
          Remote version of the XAResource.getTransactionTimeout() method.
 int prepare(Xid xid)
          Remote version of the XAResource.prepare(Xid) method.
 Xid[] recover(int flag)
          Remote version of the XAResource.recover(int) method.
 void rollback(Xid xid)
          Remote version of the XAResource.rollback(Xid) method.
 boolean setTransactionTimeout(int seconds)
          Remote version of the XAResource.setTransactionTimeout(int) method.
 void start(Xid xid, int flags)
          Remote version of the XAResource.start(Xid, int) method.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerSession
addLockToken, exportDocumentView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRootNode, getUserID, getWorkspace, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteSession
addLockToken, exportDocumentView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRootNode, getUserID, getWorkspace, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
 

Constructor Detail

ServerXASession

public ServerXASession(Session session,
                       XAResource resource,
                       RemoteAdapterFactory factory)
                throws RemoteException
Creates a remote adapter for the given local, transaction enabled, session.

Throws:
RemoteException
Method Detail

commit

public void commit(Xid xid,
                   boolean onePhase)
            throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.commit(Xid, boolean) method.

Specified by:
commit in interface RemoteXASession
Throws:
XAException

end

public void end(Xid xid,
                int flags)
         throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.end(Xid, int) method.

Specified by:
end in interface RemoteXASession
Throws:
XAException

forget

public void forget(Xid xid)
            throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.forget(Xid) method.

Specified by:
forget in interface RemoteXASession
Throws:
XAException

getTransactionTimeout

public int getTransactionTimeout()
                          throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.getTransactionTimeout() method.

Specified by:
getTransactionTimeout in interface RemoteXASession
Throws:
XAException

prepare

public int prepare(Xid xid)
            throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.prepare(Xid) method.

Specified by:
prepare in interface RemoteXASession
Throws:
XAException

recover

public Xid[] recover(int flag)
              throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.recover(int) method.

Specified by:
recover in interface RemoteXASession
Throws:
XAException

rollback

public void rollback(Xid xid)
              throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.rollback(Xid) method.

Specified by:
rollback in interface RemoteXASession
Throws:
XAException

setTransactionTimeout

public boolean setTransactionTimeout(int seconds)
                              throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.setTransactionTimeout(int) method.

Specified by:
setTransactionTimeout in interface RemoteXASession
Throws:
XAException

start

public void start(Xid xid,
                  int flags)
           throws XAException
Description copied from interface: RemoteXASession
Remote version of the XAResource.start(Xid, int) method.

Specified by:
start in interface RemoteXASession
Throws:
XAException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.