options.addOption(CliConstants.DEBUG_OPTION, false, "Enable debug logging");
return options;
}
private void createCommands() {
Command<StratosCommandContext> command = new HelpCommand();
commands.put(command.getName(), command);
command = new ExitCommand();
commands.put(command.getName(), command);
command = new SubscribeCommand();
commands.put(command.getName(), command);
command = new UnsubscribeCommand();
commands.put(command.getName(), command);
command = new ListCartridgesCommand();
commands.put(command.getName(), command);
command = new AddTenantCommand();
commands.put(command.getName(), command);
//command = new DeleteTenantCommand();
//commands.put(command.getName(), command);
command = new ListAllTenants();
commands.put(command.getName(), command);
command = new DeactivateTenantCommand();
commands.put(command.getName(), command);
command = new ActivateTenantCommand();
commands.put(command.getName(), command);
command = new CartridgeDeploymentCommand();
commands.put(command.getName(), command);
command = new PartitionDeploymentCommand();
commands.put(command.getName(), command);
command = new AutoscalingPolicyDeploymentCommand();
commands.put(command.getName(), command);
command = new DeployServiceDeploymentCommand();
commands.put(command.getName(), command);
command = new UndeployServiceDefinitionCommand();
commands.put(command.getName(), command);
command = new ListDeployServiceCommand();
commands.put(command.getName(), command);
command = new UndeployCartridgeDefinitionCommand();
commands.put(command.getName(), command);
command = new DeploymentPolicyDeploymentCommand();
commands.put(command.getName(), command);
command = new ListSubscribedCartridgesCommand();
commands.put(command.getName(), command);
command = new PartitionCommand();
commands.put(command.getName(), command);
command = new AutoscalePolicyCommand();
commands.put(command.getName(), command);
command = new DeploymentPolicyCommand();
commands.put(command.getName(), command);
command = new ListMemberCommand();
commands.put(command.getName(), command);
command = new DescribeCartridgeCommand();
commands.put(command.getName(), command);
command = new DescribePartitionCommand();
commands.put(command.getName(), command);
command = new DescribeDeploymentPolicyCommand();
commands.put(command.getName(), command);
command = new DescribeAutoScalingPolicyCommand();
commands.put(command.getName(), command);
command = new SubscribedCartridgeInfoCommand();
commands.put(command.getName(), command);
//command = new AddDomainMappingCommand();
//commands.put(command.getName(), command);
//command = new RemoveDomainMappingCommand();
//commands.put(command.getName(), command);
command = new SyncCommand();
commands.put(command.getName(), command);
//command = new PoliciesCommand();
//commands.put(command.getName(), command);
if (logger.isDebugEnabled()) {