Class 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 Detail

      • ExampleDASCommandWithReplication

        public ExampleDASCommandWithReplication()
    • 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 interface AdminCommand
        Parameters:
        context - information