org.objectweb.jonas_tm
Class TransactionFactoryImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.common.RemoteObject
|
+--org.objectweb.jonas_tm.TransactionFactoryImpl
- All Implemented Interfaces:
- java.rmi.Remote, java.io.Serializable, TransactionFactory
- public class TransactionFactoryImpl
- extends RemoteObject
- implements TransactionFactory
Implements the OTS like TransactionFactory
- Author:
- Philippe Durieux
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
TransactionFactoryImpl
public TransactionFactoryImpl()
throws java.rmi.RemoteException
- Constructor of the Transaction Factory
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
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
getPortNumber
public int getPortNumber()
throws java.rmi.RemoteException
- management method
- Specified by:
getPortNumber
in interface TransactionFactory
- Returns:
- the port number
getHostName
public java.lang.String getHostName()
throws java.rmi.RemoteException
- management method
- Specified by:
getHostName
in interface TransactionFactory
- Returns:
- the local host name