org.objectweb.jotm
Class TransactionFactoryImpl

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
      extended by org.objectweb.jotm.TransactionFactoryImpl
All Implemented Interfaces:
java.rmi.Remote, TransactionFactory

public class TransactionFactoryImpl
extends javax.rmi.PortableRemoteObject
implements TransactionFactory


Constructor Summary
TransactionFactoryImpl()
          Constructor of the Transaction Factory
 
Method Summary
 Control create(int timeout)
          Create a new Control implementation on JTM.
 java.lang.String getHostName()
          management method
 int getPortNumber()
          management method
 Control recreate(TransactionContext ctx)
          Recreate locally a Control object for an existing transaction.
 
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

TransactionFactoryImpl

public TransactionFactoryImpl()
                       throws java.rmi.RemoteException
Constructor of the Transaction Factory

Throws:
java.rmi.RemoteException
Method Detail

create

public Control create(int timeout)
               throws java.rmi.RemoteException
Create a new Control implementation on JTM.

Specified by:
create in interface TransactionFactory
Returns:
The Control object for the transaction
Throws:
java.rmi.RemoteException

recreate

public Control recreate(TransactionContext ctx)
                 throws java.rmi.RemoteException
Recreate locally a Control object for an existing transaction. It is possible to call recreate for a transaction already known. In this case, recreate simply returns the existing Control object.

Specified by:
recreate in interface TransactionFactory
Returns:
The Control object for the transaction
Throws:
java.rmi.RemoteException

getPortNumber

public int getPortNumber()
                  throws java.rmi.RemoteException
management method

Specified by:
getPortNumber in interface TransactionFactory
Returns:
the port number
Throws:
java.rmi.RemoteException

getHostName

public java.lang.String getHostName()
                             throws java.rmi.RemoteException
management method

Specified by:
getHostName in interface TransactionFactory
Returns:
the local host name
Throws:
java.rmi.RemoteException