Uses of Class
org.glassfish.api.admin.CommandException
-
-
Uses of CommandException in com.sun.enterprise.admin.cli
Methods in com.sun.enterprise.admin.cli that throw CommandException Modifier and Type Method Description protected booleanCLICommand. checkHelp()Check if the current request is a help request, either because --help was specified as a program option or a command option.intCLICommand. execute(String... argv)Execute this command with the given arguemnts.intCLICommand. execute(org.jline.terminal.Terminal terminal, String... argv)protected abstract intCLICommand. executeCommand()Execute the command using the options in options and the operands in operands.intExportCommand. executeCommand()protected intHelpCommand. executeCommand()intListCommandsCommand. executeCommand()protected intLoginCommand. executeCommand()protected intMultimodeCommand. executeCommand()intUnsetCommand. executeCommand()protected intVersionCommand. executeCommand()static CLICommandCLICommand. getCommand(CLIContainer cLIContainer, String name)static CLICommandCLICommand. getCommand(org.glassfish.hk2.api.ServiceLocator serviceLocator, String name)Get a CLICommand object representing the named command.static String[]CLIUtil. getRemoteCommands(CLIContainer container, ProgramOptions po, Environment env)Get the list of commands from the remote server.protected voidCLICommand. initializePasswords()Initialise the passwords field based on the password file specified in the program options, and initialise the program option's password if available in the password file.protected voidCLICommand. inject()Inject this instance with the final values of all the command parameters.protected voidCLICommand. parse()The parse method sets the options and operands fields based on the content of the command line arguments.protected voidCLICommand. prepare()The prepare method must ensure that the commandModel field is set.protected voidCLICommand. prevalidate()The prevalidate method supplies missing options from the environment.protected voidCLICommand. processProgramOptions()If the program options haven't already been set, parse them on the command line and remove them from the command line.static Map<String,String>CLIUtil. readPasswordFileOptions(String passwordFileName, boolean withPrefix)Read passwords from the password file and save them in a java.util.Map.voidProgramOptions. updateOptions(ParameterMap newOptions)Update the program options based on the specified options from the command line.protected voidCLICommand. validate()The validate method can be used by a subclass to validate that the type and quantity of parameters and operands matches the requirements for this command.protected voidListCommandsCommand. validate()protected voidMultimodeCommand. validate()The validate method validates that the type and quantity of parameters and operands matches the requirements for this command.Constructors in com.sun.enterprise.admin.cli that throw CommandException Constructor Description ProgramOptions(Environment env)Initialize program options based only on environment defaults, with no options from the command line.ProgramOptions(ParameterMap options, Environment env)Initialize the programoptions based on parameters parsed from the command line, with defaults supplied by the environment. -
Uses of CommandException in com.sun.enterprise.admin.cli.cluster
Methods in com.sun.enterprise.admin.cli.cluster that throw CommandException Modifier and Type Method Description protected voidCreateLocalInstanceCommand. createMasterPasswordFile(String masterPassword)Create the master password keystore.protected intRestartLocalInstanceCommand. doRemoteCommand()protected intStopLocalInstanceCommand. doRemoteCommand()Execute the actual stop-domain command.intChangeNodeMasterPasswordCommand. execute(String... argv)protected intChangeNodeMasterPasswordCommand. executeCommand()protected intCreateLocalInstanceCommand. executeCommand()protected intCreateLocalInstanceFilesystemCommand. executeCommand()protected intDeleteInstanceFilesystem. executeCommand()protected intDeleteLocalInstanceCommand. executeCommand()protected intImportSyncBundleCommand. executeCommand()protected intRestartLocalInstanceCommand. executeCommand()protected intSetupLocalDcom. executeCommand()protected intSetupSshKey. executeCommand()protected intStartLocalInstanceCommand. executeCommand()protected intStopLocalInstanceCommand. executeCommand()protected intSynchronizeInstanceCommand. executeCommand()protected intValidateDasOptions. executeCommand()protected StringChangeNodeMasterPasswordCommand. findOldPassword()Find the old password from the property in the password file with the nameChangeNodeMasterPasswordCommand.OLD_PASSWORD_ALIASif it exists, or by prompting the user otherwise.protected PropertiesLocalInstanceCommand. getDasProperties(File propfile)protected StringLocalInstanceCommand. getNodeInstallDir()protected PropertiesLocalInstanceCommand. getNodeProperties(File propertyFile)protected StringLocalInstanceCommand. getProductRootPath()Gets the GlassFish product installation root (using property com.sun.aas.productRoot), first from asenv.conf.protected voidDeleteLocalInstanceCommand. initInstance()initInstance goes to great lengths to figure out the correct directory structure.protected voidLocalInstanceCommand. initInstance()protected voidStopLocalInstanceCommand. initInstance()Big trouble if you allow the super implementation to run because it creates directories.protected voidChangeNodeMasterPasswordCommand. inject()protected intRestartLocalInstanceCommand. instanceNotRunning()protected intStopLocalInstanceCommand. instanceNotRunning()Print message and return exit code when we detect that the DAS is not running.protected voidLocalInstanceCommand. setDasDefaults(File propfile)Set the programOpts based on the das.properties file.protected voidChangeNodeMasterPasswordCommand. setNewPassword()Set theChangeNodeMasterPasswordCommand.newPasswordfield from the property in the password file with the nameChangeNodeMasterPasswordCommand.OLD_PASSWORD_ALIASif it exists, or by prompting the user twice otherwise.protected booleanSynchronizeInstanceCommand. synchronizeInstance()Synchronize this server instance.protected voidChangeNodeMasterPasswordCommand. validate()protected voidCreateLocalInstanceCommand. validate()protected voidCreateLocalInstanceFilesystemCommand. validate()protected voidDeleteInstanceFilesystem. validate()protected voidDeleteLocalInstanceCommand. validate()protected voidImportSyncBundleCommand. validate()protected voidInstallNodeDcomCommand. validate()DCOM won't work right on localhost.protected voidInstallNodeSshCommand. validate()protected voidLocalInstanceCommand. validate()protected voidRestartLocalInstanceCommand. validate()protected voidSetupLocalDcom. validate()protected voidSetupSshKey. validate()protected voidStartLocalInstanceCommand. validate()protected voidStopLocalInstanceCommand. validate()protected voidSynchronizeInstanceCommand. validate()protected voidUninstallNodeDcomCommand. validate()DCOM won't work right on localhost.protected voidUninstallNodeSshCommand. validate()protected voidValidateDasOptions. validate()protected voidLocalInstanceCommand. validateDasOptions(String hostOption, String portOption, String isSecureOption, File propfile)Checks if programOpts values match das.properties file.protected voidLocalInstanceCommand. whackFilesystem() -
Uses of CommandException in com.sun.enterprise.admin.cli.optional
Methods in com.sun.enterprise.admin.cli.optional that throw CommandException Modifier and Type Method Description voidH2Manager. buildDatabaseClasspath(File dbLocation, ClassPathBuilder sDatabaseClasspath)voidH2Manager. checkIfDbInstalled(File dbLocation)Check if database is installed.protected voidBackupCommands. checkOptions()A method that checks the options and operand that the user supplied.protected intBackupDomainCommand. executeCommand()protected intListBackupsCommand. executeCommand()protected intRestoreDomainCommand. executeCommand()protected intStartDatabaseCommand. executeCommand()Execute the commandprotected intStopDatabaseCommand. executeCommand()Executes the commandprotected voidBackupDomainCommand. validate()protected voidListBackupsCommand. validate()protected voidRestoreDomainCommand. validate() -
Uses of CommandException in com.sun.enterprise.admin.cli.remote
Subclasses of CommandException in com.sun.enterprise.admin.cli.remote Modifier and Type Class Description classReExecutedThis is a trick forRemoteRestCommandwhere command lifecycle must be restarted.Methods in com.sun.enterprise.admin.cli.remote that throw CommandException Modifier and Type Method Description protected booleanRemoteCommand. checkHelp()We do all our help processing in executeCommand.intRemoteCLICommand. execute(String... argv)intRemoteCommand. execute(String... argv)ActionReportRemoteCLICommand. executeAndReturnActionReport(String... args)Execute the command and return the main attributes from the manifest instead of writing out the output.Map<String,String>RemoteCommand. executeAndReturnAttributes(String... args)Execute the command and return the main attributes from the manifest instead of writing out the output.StringRemoteCLICommand. executeAndReturnOutput(String... args)Execute the command and return the output as a string instead of writing it out.StringRemoteCommand. executeAndReturnOutput(String... args)Execute the command and return the output as a string instead of writing it out.protected intRemoteCLICommand. executeCommand()protected intRemoteCommand. executeCommand()protected voidRemoteCLICommand. inject()protected voidRemoteCommand. inject()protected voidRemoteCLICommand. parse()static DASUtils.ErrorDASUtils. pingDASWithAuth(ProgramOptions programOpts, Environment env)See if DAS is alive, but insist that athentication is correct.protected voidRemoteCLICommand. prepare()protected voidRemoteCommand. prepare()protected voidRemoteCLICommand. prevalidate()protected voidRemoteCommand. prevalidate()protected voidRemoteCLICommand. validate()protected voidRemoteCommand. validate()Constructors in com.sun.enterprise.admin.cli.remote that throw CommandException Constructor Description RemoteCLICommand()Construct a new remote command object.RemoteCLICommand(String name, ProgramOptions po, Environment env)Construct a new remote command object.RemoteCLICommand(String name, ProgramOptions po, Environment env, String responseFormatType, OutputStream userOut)Construct a new remote command object.RemoteCommand()Construct a new remote command object.RemoteCommand(String name, ProgramOptions po, Environment env)Construct a new remote command object.RemoteCommand(String name, ProgramOptions po, Environment env, String responseFormatType, OutputStream userOut)Construct a new remote command object. -
Uses of CommandException in com.sun.enterprise.admin.remote
Methods in com.sun.enterprise.admin.remote that throw CommandException Modifier and Type Method Description StringRemoteAdminCommand. executeCommand(ParameterMap opts)Run the command using the specified arguments.StringRemoteRestAdminCommand. executeCommand(ParameterMap opts)Run the command using the specified arguments.protected voidRemoteAdminCommand. fetchCommandModel()Fetch the command metadata from the remote server.protected voidRemoteRestAdminCommand. fetchCommandModel()Fetch the command metadata from the remote server.CommandModelRemoteAdminCommand. getCommandModel()Get the CommandModel for the command from the server.CommandModelRemoteRestAdminCommand. getCommandModel()Get the CommandModel for the command from the server.StringRemoteRestAdminCommand. getManPage()protected booleanRemoteRestAdminCommand. useSse()Constructors in com.sun.enterprise.admin.remote that throw CommandException Constructor Description RemoteAdminCommand(String name, String host, int port)RemoteAdminCommand(String name, String host, int port, boolean secure, String user, char[] password, Logger logger)RemoteAdminCommand(String name, String host, int port, boolean secure, String user, char[] password, Logger logger, String scope, String authToken, boolean prohibitDirectoryUploads)Construct a new remote command object.RemoteRestAdminCommand(String name, String host, int port)RemoteRestAdminCommand(String name, String host, int port, boolean secure, String user, char[] password, Logger logger, boolean notify)RemoteRestAdminCommand(String name, String host, int port, boolean secure, String user, char[] password, Logger logger, String scope, String authToken, boolean prohibitDirectoryUploads, boolean notify)Construct a new remote command object.ServerRemoteAdminCommand(org.glassfish.hk2.api.ServiceLocator habitat, String name, String host, int port, boolean secure, String user, String password, Logger logger)ServerRemoteRestAdminCommand(org.glassfish.hk2.api.ServiceLocator habitat, String name, String host, int port, boolean secure, String user, String password, Logger logger) -
Uses of CommandException in com.sun.enterprise.admin.servermgmt.cli
Methods in com.sun.enterprise.admin.servermgmt.cli that throw CommandException Modifier and Type Method Description protected intRestartDomainCommand. dasNotRunning()If the server isn't running, try to start it.protected intStopDomainCommand. dasNotRunning()Print message and return exit code when we detect that the DAS is not running.protected voidRestartDomainCommand. doCommand()Execute the restart-domain command.protected voidStopDomainCommand. doCommand()Execute the actual stop-domain command.intChangeMasterPasswordCommand. execute(String... args)protected intChangeAdminPasswordCommand. executeCommand()Execute the remote command using the parameters we've collected.protected intChangeMasterPasswordCommand. executeCommand()protected intChangeMasterPasswordCommandDAS. executeCommand()protected intCreateDomainCommand. executeCommand()protected intCreateServiceCommand. executeCommand()protected intDeleteDomainCommand. executeCommand()protected intDeleteServiceCommand. executeCommand()protected intListDomainsCommand. executeCommand()protected intMonitorCommand. executeCommand()protected intStartDomainCommand. executeCommand()protected intStopDomainCommand. executeCommand()protected intVerifyDomainXmlCommand. executeCommand()protected HostAndPortLocalServerCommand. getAdminAddress()Returns the admin address of the local domain.protected HostAndPortLocalServerCommand. getAdminAddress(String serverName)Returns the admin address of a particular server.protected Map<String,Boolean>ListDomainsCommand. getDomains()Get a list of domains and their statusprotected StringLocalServerCommand. getInstallRootPath()Gets the GlassFish installation root (using property com.sun.aas.installRoot), first from asenv.conf.protected StringLocalServerCommand. getMasterPassword()Get the master password, either from a password file or by asking the user.protected longLocalServerCommand. getUptime()Get uptime from the server.protected voidLocalDomainCommand. initDomain()protected voidStopDomainCommand. initDomain()Override initDomain in LocalDomainCommand to only initialize the local domain information (name, directory) in the local case, when no --host has been specified.protected booleanLocalServerCommand. isRestartable()See if the server is restartable As of March 2011 -- this only returns false if a passwordfile argument was given when the server started -- but it is no longer available - i.e.the user deleted it or made it unreadable.protected intStopDomainCommand. kill()protected voidLocalDomainCommand. prepare()booleanStartServerHelper. prepareForLaunch()Run a series of commands to prepare for a launch.protected voidChangeAdminPasswordCommand. validate()Require the user to actually type the passwords unless they are in the file specified by the --passwordfile option.protected voidChangeMasterPasswordCommandDAS. validate()protected voidCreateDomainCommand. validate()protected voidCreateServiceCommand. validate()protected voidDeleteDomainCommand. validate()protected voidDeleteServiceCommand. validate()protected voidListDomainsCommand. validate()protected voidLocalDomainCommand. validate()protected voidStartDomainCommand. validate()protected voidStopDomainCommand. validate()protected voidVerifyDomainXmlCommand. validate()protected voidStopDomainCommand. waitForDeath()Wait for the server to die.protected voidLocalServerCommand. waitForRestart(int oldServerPid)protected voidLocalServerCommand. waitForRestart(int oldServerPid, long timeout)Byron Nevins Says: We have quite a historical assortment of ways to determine if a server has restarted.voidStartServerHelper. waitForServer()voidStartServerHelper. waitForServer(long timeout, TimeUnit unit)Constructors in com.sun.enterprise.admin.servermgmt.cli that throw CommandException Constructor Description MonitorTask(Timer timer, String[] remoteArgs, ProgramOptions programOpts, Environment env, String type, String filter, File fileName) -
Uses of CommandException in com.sun.enterprise.admin.util
Methods in com.sun.enterprise.admin.util that throw CommandException Modifier and Type Method Description static ServerDirsSelectorServerDirsSelector. getInstance(File domainDirParent, String serverName, String nodeDir, String node)Creates a selector for choosing the correct set of directories.Constructors in com.sun.enterprise.admin.util that throw CommandException Constructor Description InstanceCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat, String name, FailurePolicy fail, FailurePolicy offline, Server server, String host, int port, Logger logger, ParameterMap p, ActionReport r, InstanceCommandResult res)InstanceRestCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat, String name, FailurePolicy fail, FailurePolicy offline, Server server, String host, int port, Logger logger, ParameterMap p, ActionReport r, InstanceCommandResult res) -
Uses of CommandException in com.sun.enterprise.v3.admin.cluster
Methods in com.sun.enterprise.v3.admin.cluster that throw CommandException Modifier and Type Method Description ActionReportClusterCommandHelper. runCommand(String command, ParameterMap map, String targetName, AdminCommandContext context, boolean verbose)Loop through all instances in a cluster and execute a command for each one.ActionReportClusterCommandHelper. runCommand(String command, ParameterMap map, String targetName, AdminCommandContext context, boolean verbose, boolean rolling)Loop through all instances in a cluster and execute a command for each one. -
Uses of CommandException in fish.payara.admin.servermgmt.cli
Methods in fish.payara.admin.servermgmt.cli that throw CommandException Modifier and Type Method Description protected intStopAllDomainsCommand. dasNotRunning()protected intStopDomainsCommand. dasNotRunning()protected intAddKeypairCommand. executeCommand()protected intGenerateEncryptionKey. executeCommand()protected intPrintCertificateCommand. executeCommand()protected intRestartDomainsCommand. executeCommand()protected intStartDomainsCommand. executeCommand()protected intStopAllDomainsCommand. executeCommand()protected intStopDomainsCommand. executeCommand()protected voidStopAllDomainsCommand. prevalidate()protected voidAddKeypairCommand. validate()protected voidGenerateEncryptionKey. validate()protected voidPrintCertificateCommand. validate()protected voidRestartDomainsCommand. validate()protected voidStartDomainsCommand. validate()protected voidStopAllDomainsCommand. validate()protected voidStopDomainsCommand. validate() -
Uses of CommandException in org.glassfish.api.admin
Subclasses of CommandException in org.glassfish.api.admin Modifier and Type Class Description classAuthenticationExceptionA specialized CommandException that indicates an authentication failure.classCommandValidationExceptionclassInvalidCommandExceptionclassSSHCommandExecutionExceptionCreated by IntelliJ IDEA. -
Uses of CommandException in org.glassfish.cluster.ssh.util
Methods in org.glassfish.cluster.ssh.util that throw CommandException Modifier and Type Method Description static booleanSSHUtil. isEncryptedKey(String keyFile)Simple method to validate an encrypted key filestatic booleanSSHUtil. validateKeyFile(String file)This method validates either private or public key file. -
Uses of CommandException in org.glassfish.deployment.client
Methods in org.glassfish.deployment.client that throw CommandException Modifier and Type Method Description protected abstract AbstractDeploymentFacility.DFCommandRunnerAbstractDeploymentFacility. getDFCommandRunner(String commandName, DFDeploymentProperties commandOptions, String[] operands)Returns a command runner for the concrete implementation.protected AbstractDeploymentFacility.DFCommandRunnerRemoteDeploymentFacility. getDFCommandRunner(String commandName, DFDeploymentProperties commandOptions, String[] operands)protected ProgramOptionsRemoteDeploymentFacility. prepareRemoteCommandProgramOptions(Environment env)DFDeploymentStatusAbstractDeploymentFacility.DFCommandRunner. run()Runs the command. -
Uses of CommandException in org.glassfish.osgi.cli.interactive
Methods in org.glassfish.osgi.cli.interactive that throw CommandException Modifier and Type Method Description protected intLocalOSGiShellCommand. executeCommand()protected StringLocalOSGiShellCommand. startSession()protected intLocalOSGiShellCommand. stopSession(String sessionId)protected voidLocalOSGiShellCommand. validate()The validate method validates that the type and quantity of parameters and operands matches the requirements for this command.
-