org.objectweb.jotm.jtests.conform
Class XAIntegerServerImpl
java.lang.Object
|
+--javax.rmi.PortableRemoteObject
|
+--org.objectweb.jotm.jtests.conform.XAIntegerServerImpl
- All Implemented Interfaces:
- Remote, XAIntegerServer
- public class XAIntegerServerImpl
- extends PortableRemoteObject
- implements XAIntegerServer
A remote server that can manage XAInteger
Created on Oct 15, 2001
- Author:
- Christophe Ney
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XAIntegerServerImpl
public XAIntegerServerImpl()
throws RemoteException
startProcess
public static void startProcess()
throws Exception
Exception
stopProcess
public static boolean stopProcess(int timeoutInSeconds)
throws Exception
Exception
startTransactionFactory
public static org.objectweb.jotm.TransactionFactory startTransactionFactory(boolean isLocal)
throws Exception
Exception
newRemoteInteger
public static void newRemoteInteger(int persistentValue,
int currentValue)
throws Exception
Exception
newRemoteInteger
public static void newRemoteInteger(int persistentValue,
int currentValue,
boolean failOnCommit)
throws Exception
Exception
setRemoteInteger
public static void setRemoteInteger(int currentValue)
throws Exception
Exception
getRemotePersistentInteger
public static int getRemotePersistentInteger()
throws Exception
Exception
isRemoteDirty
public static boolean isRemoteDirty()
throws RemoteException
RemoteException
main
public static void main(String[] args)
throws Exception
Exception
startTransactionManager
public org.objectweb.jotm.TransactionFactory startTransactionManager(org.objectweb.jotm.TransactionFactory transactionFactory)
throws RemoteException
- Specified by:
startTransactionManager
in interface XAIntegerServer
RemoteException
newInteger
public void newInteger(int persistentValue,
int currentValue,
boolean failOnCommit)
throws RemoteException
- Specified by:
newInteger
in interface XAIntegerServer
RemoteException
setCurrentInteger
public void setCurrentInteger(int currentValue)
throws RemoteException
- Specified by:
setCurrentInteger
in interface XAIntegerServer
RemoteException
getPersistentInteger
public int getPersistentInteger()
throws RemoteException
- Specified by:
getPersistentInteger
in interface XAIntegerServer
RemoteException
isDirty
public boolean isDirty()
throws RemoteException
- Specified by:
isDirty
in interface XAIntegerServer
RemoteException
shutdown
public void shutdown()
throws RemoteException
- Specified by:
shutdown
in interface XAIntegerServer
RemoteException