/** * Returns the transactorID of this node */ public TransactorID getTransactorID() { if (getStatus() == TrStatus.CLOSED) { throw new IllegalStateException("TransactorID is closed!"); } return tid; }
public synchronized TransactorNode getTransactorNode() { checkIfClosed(); if (tnode == null) { tnode = new TransactorNode(env, getTransactorID()); } else if (tnode.getStatus() == TrStatus.CLOSED) { throw new IllegalStateException("TransactorNode is closed!"); } return tnode; }