Class ExampleDASCommandWithReplication
- java.lang.Object
-
- fish.payara.service.example.config.admin.ExampleDASCommandWithReplication
-
- All Implemented Interfaces:
AdminCommand
@Service(name="example-das-command") @PerLookup @ExecuteOn(DAS) public class ExampleDASCommandWithReplication extends Object implements AdminCommand
This is an Exemplar asadmin command that needs to first run on the DAS to do something and then runs an additional command on a number of instances. The use case is you need to perhaps update something on the DAS or in the DAS config then do some work on a remote instance.- Author:
- steve
-
-
Constructor Summary
Constructors Constructor Description ExampleDASCommandWithReplication()
-
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
-
-