Class TMMON
java.lang.Object
org.jpos.q2.cli.TMMON
- All Implemented Interfaces:
EventListener, CLICommand, TransactionStatusListener
CLI command that subscribes to one or more named transaction managers and
mirrors their
TransactionStatusListener events to the terminal until
the user presses Enter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexec(CLIContext cli, String[] args) Executes the CLI command.voidHandles a transaction status update.voidusage(CLIContext cli) Prints command usage and lists the registered transaction managers.
-
Constructor Details
-
TMMON
public TMMON()Default constructor; no instance state to initialise.
-
-
Method Details
-
exec
Description copied from interface:CLICommandExecutes the CLI command.- Specified by:
execin interfaceCLICommand- Parameters:
cli- the CLI contextargs- command arguments- Throws:
Exception- on error
-
usage
Prints command usage and lists the registered transaction managers.- Parameters:
cli- the CLI context to write to
-
update
Description copied from interface:TransactionStatusListenerHandles a transaction status update.- Specified by:
updatein interfaceTransactionStatusListener- Parameters:
e- transaction status event
-