org.objectweb.jotm

Interface Coordinator

All Superinterfaces:
Remote
Known Implementing Classes:
ControlImpl

public interface Coordinator
extends Remote

OTS-like Coordinator.

Author:
jmesnil

See Also:
OTS Coordinator

Method Summary

int
get_status()
String
get_transaction_name()
boolean
is_same_transaction(Coordinator tc)
RecoveryCoordinator
register_resource(Resource r)
void
register_synchronization(RemoteSynchro sync)
void
rollback_only()

Method Details

get_status

public int get_status()
            throws RemoteException

Returns:
status


get_transaction_name

public String get_transaction_name()
            throws RemoteException

Returns:
transaction name


is_same_transaction

public boolean is_same_transaction(Coordinator tc)
            throws RemoteException

Parameters:
tc - Coordinator

Returns:
true if transaction is the same than for tc


register_resource

public RecoveryCoordinator register_resource(Resource r)
            throws RemoteException

Parameters:
r - Resource

Returns:
RecoveryCoordinator


register_synchronization

public void register_synchronization(RemoteSynchro sync)
            throws RemoteException

Parameters:
sync - RemoteSynnchro


rollback_only

public void rollback_only()
            throws RemoteException