gui.transact
Class TrInitDialClient
java.lang.Object
gui.transact.TrState
gui.transact.TrInitDialClient
public class TrInitDialClient
- extends TrState
Method Summary |
private ClientCom |
connectToDialogueServer(java.lang.String host,
int serverPort,
java.nio.charset.Charset charSet)
Creates a client of the dialogue server and sends a client connection request. |
private void |
disconnectFromDialogueServer()
Sends to the dialogue server the message "client_shutdown"
which closes the client connection and also kills the dialogue server process. |
void |
nextStep(Transaction tr)
Subclasses must decide which state follows when the user asks for
executing the next step of the transaction |
void |
runTasks(Transaction tr)
Subclasses must decide what to do
when the user asks for executing the
tasks required inside this state of the transaction. |
void |
stopStateProcs(Transaction tr)
Stops the processes started by tasks of TrInitDialClient state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final java.util.logging.Logger logger
dialogClient
private ClientCom dialogClient
TrInitDialClient
public TrInitDialClient()
nextStep
public void nextStep(Transaction tr)
- Description copied from class:
TrState
- Subclasses must decide which state follows when the user asks for
executing the next step of the transaction
- Specified by:
nextStep
in class TrState
runTasks
public void runTasks(Transaction tr)
- Description copied from class:
TrState
- Subclasses must decide what to do
when the user asks for executing the
tasks required inside this state of the transaction.
- Specified by:
runTasks
in class TrState
stopStateProcs
public void stopStateProcs(Transaction tr)
- Stops the processes started by tasks of TrInitDialClient state.
- Overrides:
stopStateProcs
in class TrState
connectToDialogueServer
private ClientCom connectToDialogueServer(java.lang.String host,
int serverPort,
java.nio.charset.Charset charSet)
- Creates a client of the dialogue server and sends a client connection request.
disconnectFromDialogueServer
private void disconnectFromDialogueServer()
- Sends to the dialogue server the message "client_shutdown"
which closes the client connection and also kills the dialogue server process.
- Parameters:
ClientCom
- cc