Package fish.payara.admin.monitor.cli
Class RestartMonitoring
- java.lang.Object
-
- fish.payara.admin.monitor.cli.RestartMonitoring
-
- All Implemented Interfaces:
AdminCommand
@Service(name="restart-monitoring") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,DEPLOYMENT_GROUP,CONFIG}) public class RestartMonitoring extends Object implements AdminCommand
Asadmin command to restart Module Monitoring Level. Sets monitoring module levels to OFF before reverting back to their previous values. This was Feature request due to AMX metrics "breaking" sometimes, where restarting it manually was somewhat tedious and prone to error.- Author:
- Alan Roth
-
-
Constructor Summary
Constructors Constructor Description RestartMonitoring()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(AdminCommandContext context)Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
executein interfaceAdminCommand- Parameters:
context- information
-
-