Package org.apache.jackrabbit.rmi.server
Class ServerXASession
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerSession
-
- org.apache.jackrabbit.rmi.server.ServerXASession
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteSession
,RemoteXASession
@Deprecated(forRemoval=true) public class ServerXASession extends ServerSession implements RemoteXASession
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.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
Constructors Constructor Description ServerXASession(Session session, XAResource resource, RemoteAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local, transaction enabled, session.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
commit(Xid xid, boolean onePhase)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.commit(Xid, boolean)
method.void
end(Xid xid, int flags)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.end(Xid, int)
method.void
forget(Xid xid)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.forget(Xid)
method.int
getTransactionTimeout()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.getTransactionTimeout()
method.int
prepare(Xid xid)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.prepare(Xid)
method.Xid[]
recover(int flag)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.recover(int)
method.void
rollback(Xid xid)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.rollback(Xid)
method.boolean
setTransactionTimeout(int seconds)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.setTransactionTimeout(int)
method.void
start(Xid xid, int flags)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theXAResource.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, 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
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.commit(Xid, boolean)
method.- Specified by:
commit
in interfaceRemoteXASession
- Throws:
XAException
-
end
public void end(Xid xid, int flags) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.end(Xid, int)
method.- Specified by:
end
in interfaceRemoteXASession
- Throws:
XAException
-
forget
public void forget(Xid xid) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.forget(Xid)
method.- Specified by:
forget
in interfaceRemoteXASession
- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.getTransactionTimeout()
method.- Specified by:
getTransactionTimeout
in interfaceRemoteXASession
- Throws:
XAException
-
prepare
public int prepare(Xid xid) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.prepare(Xid)
method.- Specified by:
prepare
in interfaceRemoteXASession
- Throws:
XAException
-
recover
public Xid[] recover(int flag) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.recover(int)
method.- Specified by:
recover
in interfaceRemoteXASession
- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.rollback(Xid)
method.- Specified by:
rollback
in interfaceRemoteXASession
- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.setTransactionTimeout(int)
method.- Specified by:
setTransactionTimeout
in interfaceRemoteXASession
- Throws:
XAException
-
start
public void start(Xid xid, int flags) throws XAException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteXASession
Remote version of theXAResource.start(Xid, int)
method.- Specified by:
start
in interfaceRemoteXASession
- Throws:
XAException
-
-