@Service(name = "list-nodes-config") @PerLookup @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.config.command") @RestEndpoints({ @RestEndpoint(configBean=Domain.class, opType=RestEndpoint.OpType.GET, public class ListNodesConfigCommand implements AdminCommand{ @Inject Servers servers; @Inject private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
@Service(name = "list-nodes") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.command") public class ListNodesCommand implements AdminCommand{ private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
/** * * @author Jerome Dochez */ @Service(name="list-applications") @I18n("list.applications") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @ExecuteOn(value={RuntimeType.DAS}) @TargetType(value={CommandTarget.DOMAIN, CommandTarget.DAS, CommandTarget.STANDALONE_INSTANCE, CommandTarget.CLUSTER}) public class ListApplicationsCommand extends ListComponentsCommand { public void execute(AdminCommandContext context) { super.execute(context); } }
@Service(name = "_get-service-description") @Scoped(PerLookup.class) @ExecuteOn(RuntimeType.DAS) @TargetType(value = {CommandTarget.DAS}) @CommandLock(CommandLock.LockType.NONE) @RestEndpoints({ @RestEndpoint(configBean = Applications.class, opType = RestEndpoint.OpType.GET, path = "_get-service-description", description = "Get Service Description for a particular service of an application") public class GetServiceDescription implements AdminCommand { @Param(name = "appname", optional = false) private String appName; @Param(name = "servicename", primary = true) private String service;
@Service(name="_is-sniffer-user-visible") @org.glassfish.api.admin.ExecuteOn(value={RuntimeType.DAS}) @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) public class IsSnifferUserVisibleCommand implements AdminCommand { @Param(primary=true) public String sniffername = null;
@Service(name = "list-nodes-ssh") @PerLookup @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.ssh.command") @RestEndpoints({ @RestEndpoint(configBean=Nodes.class, opType=RestEndpoint.OpType.GET, public class ListNodesSshCommand implements AdminCommand{ @Inject Servers servers; @Inject private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
@Service(name = "list-nodes-config") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.config.command") public class ListNodesConfigCommand implements AdminCommand{ private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
@Service(name="register-startup") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @ExecuteOn(RuntimeType.DAS) @RestEndpoints({ @RestEndpoint(configBean = VirtualMachineConfig.class, opType = RestEndpoint.OpType.GET, path = "register-startup", description = "Register startup") }) public class RegisterStartup implements AdminCommand { @Param String group; @Param String machine; @Param String address;
@Service(name="_get-targets") @ExecuteOn(value={RuntimeType.DAS}) @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) public class GetTargetsCommand implements AdminCommand { @Param(optional=true, primary=true) String appName = null;
@Service(name = "_restart-instance") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) // allow restart always @Async @I18n("restart.instance.command") @ExecuteOn(RuntimeType.INSTANCE) public class RestartInstanceInstanceCommand extends RestartServer implements AdminCommand {
@Service(name = "list-nodes") @PerLookup @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.command") @RestEndpoints({ @RestEndpoint(configBean=Domain.class, opType=RestEndpoint.OpType.GET, public class ListNodesCommand implements AdminCommand{ @Inject Servers servers; @Inject private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
@Service(name = "list-nodes-ssh") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @I18n("list.nodes.ssh.command") public class ListNodesSshCommand implements AdminCommand{ private Nodes nodes; @Param(optional = true, defaultValue = "false", name="long", shortName="l") private boolean long_opt; @Param(optional = true) private boolean terse;
@org.jvnet.hk2.annotations.Service(name = "paas-undeploy") @Scoped(PerLookup.class) @ExecuteOn(RuntimeType.DAS) @TargetType(value = {CommandTarget.DAS}) @CommandLock(CommandLock.LockType.NONE) @RestEndpoints({ @RestEndpoint(configBean = Domain.class, opType = RestEndpoint.OpType.GET, path = "paas-undeploy", description = "Undeploy a PaaS enabled application") }) @Param(name = "file", primary = true) private File archive;
@Service @Supplemental(value = "stop-instance", on= Supplemental.Timing.After ) @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) public class SupplementalStopInstance implements AdminCommand { @Param(name="instance_name", primary = true) String instanceName; @Param(name="_vmShutdown", optional=true, defaultValue = "true") private String vmShutdown;
@Service(name="list-web-env-entry") @I18n("listWebEnvEntry.command") @PerLookup @CommandLock(CommandLock.LockType.NONE) @RestEndpoints({ @RestEndpoint(configBean=Application.class, opType=RestEndpoint.OpType.GET, public class ListWebEnvEntryCommand extends WebModuleConfigCommand { @Param(name="name",optional=true) private String name;
@I18n("start.cluster.command") @Service(name = "start-cluster") @ExecuteOn(value={RuntimeType.DAS}) @CommandLock(CommandLock.LockType.NONE) // don't prevent _synchronize-files @Scoped(PerLookup.class) public class StartClusterCommand implements AdminCommand { private CommandRunner runner; @Param(optional = false, primary = true) private String clusterName; @Param(optional = true, defaultValue = "false") private boolean verbose; @Param(optional=true, obsolete=true) private boolean autohadboverride = false;
@Service(name="register-virtual-machine") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @ExecuteOn(RuntimeType.DAS) @RestEndpoints({ @RestEndpoint(configBean = VirtualMachineConfig.class, opType = RestEndpoint.OpType.GET, path = "register-virtual-machine", description = "Register Virtual Machine") }) public class RegisterVirtualMachine implements AdminCommand { @Param String group; @Param String machine; @Param String address;
@Service @Supplemental(value = "start-instance", on= Supplemental.Timing.Before ) @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) public class SupplementalStartInstance implements AdminCommand { @Param(name="instance_name", primary = true) String instanceName; Virtualizations virtualizations; @Param(name="_vmStartup", optional=true, defaultValue = "true") private String vmStartup;
@Service(name = "uptime") @PerLookup @CommandLock(CommandLock.LockType.NONE) @I18n("uptime") @RestEndpoints({ @RestEndpoint(configBean=Domain.class, opType=RestEndpoint.OpType.GET, public class UptimeCommand implements AdminCommand { @Inject ServerEnvironmentImpl env; @Param(name = "milliseconds", optional = true, defaultValue = "false") Boolean milliseconds;
@Service(name="list-lifecycle-modules") @I18n("list.lifecycle.modules") @Scoped(PerLookup.class) @CommandLock(CommandLock.LockType.NONE) @ExecuteOn(value={RuntimeType.DAS}) @TargetType(value={CommandTarget.DOMAIN, CommandTarget.DAS, CommandTarget.STANDALONE_INSTANCE, CommandTarget.CLUSTER}) public class ListLifecycleModulesCommand implements AdminCommand { @Param(primary=true, optional=true) public String target = "server"; @Param(optional=true, defaultValue="false", shortName="t") public Boolean terse = false;