Package org.appng.cli.commands.heartbeat
Class HeartBeat
- java.lang.Object
-
- org.appng.cli.commands.heartbeat.HeartBeat
-
- All Implemented Interfaces:
ExecutableCliCommand
public class HeartBeat extends Object implements ExecutableCliCommand
Sends and receives a heartbeat using the configured messaging settings.
Usage: heartbeat [options] Options: -i The interval of the heartbeat in milliseconds. Default: 1000 -n The node id for the events to be send. Default: System.getProperty("appng.node.id") -s The site name for the heartbeat event. Default: appng
- Author:
- Matthias Müller
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeartBeat.HeartBeatEvent
-
Constructor Summary
Constructors Constructor Description HeartBeat()
-
-
-
Method Detail
-
execute
public void execute(CliEnvironment cle) throws BusinessException
Description copied from interface:ExecutableCliCommand
Executes the command.- Specified by:
execute
in interfaceExecutableCliCommand
- Parameters:
cle
- theCliEnvironment
to use- Throws:
BusinessException
- if on error occurs while executing the command
-
-