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

Constructor Summary
XAIntegerServerImpl()
           
 
Method Summary
 int getPersistentInteger()
           
static int getRemotePersistentInteger()
           
 boolean isDirty()
           
static boolean isRemoteDirty()
           
static void main(String[] args)
           
 void newInteger(int persistentValue, int currentValue, boolean failOnCommit)
           
static void newRemoteInteger(int persistentValue, int currentValue)
           
static void newRemoteInteger(int persistentValue, int currentValue, boolean failOnCommit)
           
 void setCurrentInteger(int currentValue)
           
static void setRemoteInteger(int currentValue)
           
 void shutdown()
           
static void startProcess()
           
static org.objectweb.jonas_tm.TransactionFactory startTransactionFactory(boolean isLocal)
           
 org.objectweb.jonas_tm.TransactionFactory startTransactionManager(org.objectweb.jonas_tm.TransactionFactory transactionFactory)
           
static boolean stopProcess(int timeoutInSeconds)
           
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAIntegerServerImpl

public XAIntegerServerImpl()
                    throws RemoteException
Method Detail

startProcess

public static void startProcess()
                         throws Exception
Exception

stopProcess

public static boolean stopProcess(int timeoutInSeconds)
                           throws Exception
Exception

startTransactionFactory

public static org.objectweb.jonas_tm.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.jonas_tm.TransactionFactory startTransactionManager(org.objectweb.jonas_tm.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