Class ValidateNodeCommand

  • All Implemented Interfaces:
    AdminCommand

    @Service(name="_validate-node")
    @PerLookup
    @ExecuteOn(DAS)
    public class ValidateNodeCommand
    extends Object
    implements AdminCommand
    Remote AdminCommand to validate a config Node. This command is run only on DAS. This command does the following: If the node does not exist it returns an error If parameters are passed to the command, such as nodehost, then it verifies the parameters passed to the command match what is in the config. If the config does not match the passed parameters then it is an error -- unless the config has no value. If the node exists, but does not have some of the attributes passed to the command, then the node is updated with the values passed to the command.
    Author:
    Joe Di Pol
    • Constructor Detail

      • ValidateNodeCommand

        public ValidateNodeCommand()
    • 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