Class ExampleInstanceCommand
- java.lang.Object
-
- fish.payara.service.example.config.admin.ExampleInstanceCommand
-
- All Implemented Interfaces:
AdminCommand
@Service(name="example-instance-command") @PerLookup @ExecuteOn(INSTANCE) @TargetType({CLUSTER,CLUSTERED_INSTANCE,CONFIG,DAS,STANDALONE_INSTANCE}) public class ExampleInstanceCommand extends Object implements AdminCommand
Example Command that does not operate on the configuration but wants to interact directly with the service running in an instance. From the ExecuteOn below this command will ONLY run on targeted instances The command will NOT run on the DAS unless targeted explicitly. If a target parameter is specified this command will be executed on all instances that meet the target specification i.e. if a config all instances referencing the config if a cluster all instances in the cluster if an instance name that specific instance.- Author:
- steve
-
-
Constructor Summary
Constructors Constructor Description ExampleInstanceCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(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:AdminCommand
Executes 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:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
-