Class ExampleConfigUpdateOnlyOnDAS
- java.lang.Object
-
- fish.payara.service.example.config.admin.ExampleConfigUpdateOnlyOnDAS
-
- All Implemented Interfaces:
AdminCommand
@Service(name="example-das-command") @PerLookup @ExecuteOn(INSTANCE) @TargetType(DAS) public class ExampleConfigUpdateOnlyOnDAS extends Object implements AdminCommand
Example command that updates the correct configuration but runs ONLY on the DAS You can do this style of command if you only want to update the configuration and you don't care about updating the service dynamically in other running instances NOTE: If the service is a ConfigListener it will still be notified on the DAS that the configuration has changed- Author:
- steve
-
-
Constructor Summary
Constructors Constructor Description ExampleConfigUpdateOnlyOnDAS()
-
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
-
-