org.apache.jackrabbit.rmi.server
Class ServerXAResource

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.ServerXAResource
All Implemented Interfaces:
Serializable, Remote, RemoteXAResource

public class ServerXAResource
extends UnicastRemoteObject
implements RemoteXAResource

Remote adapter for the XAResource interface.

Since:
1.4
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerXAResource(XAResource resource)
          Creates a remote adapter for the given local XA resource.
 
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 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
 

Constructor Detail

ServerXAResource

public ServerXAResource(XAResource resource)
                 throws RemoteException
Creates a remote adapter for the given local XA resource.

Throws:
RemoteException
Method Detail

commit

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

Specified by:
commit in interface RemoteXAResource
Throws:
XAException

end

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

Specified by:
end in interface RemoteXAResource
Throws:
XAException

forget

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

Specified by:
forget in interface RemoteXAResource
Throws:
XAException

getTransactionTimeout

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

Specified by:
getTransactionTimeout in interface RemoteXAResource
Throws:
XAException

prepare

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

Specified by:
prepare in interface RemoteXAResource
Throws:
XAException

recover

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

Specified by:
recover in interface RemoteXAResource
Throws:
XAException

rollback

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

Specified by:
rollback in interface RemoteXAResource
Throws:
XAException

setTransactionTimeout

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

Specified by:
setTransactionTimeout in interface RemoteXAResource
Throws:
XAException

start

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

Specified by:
start in interface RemoteXAResource
Throws:
XAException


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