com.sun.enterprise.admin.cli.cluster
Class SynchronizeInstanceCommand

java.lang.Object
  extended by com.sun.enterprise.admin.cli.CLICommand
      extended by com.sun.enterprise.admin.cli.LocalServerCommand
          extended by com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
              extended by com.sun.enterprise.admin.cli.cluster.SynchronizeInstanceCommand
All Implemented Interfaces:
org.jvnet.hk2.component.PostConstruct
Direct Known Subclasses:
StartLocalInstanceCommand

@Service(name="_synchronize-instance")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class SynchronizeInstanceCommand
extends LocalInstanceCommand

Synchronize a local server instance.


Field Summary
protected  java.lang.String sync
           
 
Fields inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRoot
 
Fields inherited from class com.sun.enterprise.admin.cli.CLICommand
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING
 
Constructor Summary
SynchronizeInstanceCommand()
           
 
Method Summary
protected  int executeCommand()
           
protected  boolean synchronizeInstance()
          Synchronize this server instance.
protected  void validate()
           
 
Methods inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
getDasProperties, getInstallRootPath, getInstanceDirs, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, isDirectory, mkdirs, setDasDefaults, setServerDirs, validateDasOptions, whackFilesystem
 
Methods inherited from class com.sun.enterprise.admin.cli.LocalServerCommand
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getUptime, isRestartable, isRunning, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
 
Methods inherited from class com.sun.enterprise.admin.cli.CLICommand
checkHelp, execute, getBooleanOption, getCommand, getManPage, getName, getOperandModel, getOption, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, toString, usageOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sync

protected java.lang.String sync
Constructor Detail

SynchronizeInstanceCommand

public SynchronizeInstanceCommand()
Method Detail

validate

protected void validate()
                 throws CommandException
Overrides:
validate in class LocalInstanceCommand
Throws:
CommandException

executeCommand

protected int executeCommand()
                      throws CommandException
Specified by:
executeCommand in class CLICommand
Throws:
CommandException

synchronizeInstance

protected boolean synchronizeInstance()
                               throws CommandException
Synchronize this server instance. Return true if server is synchronized. Return false if synchronization failed, but no files were changed (meaning that it is ok to bring the server up). Throw a CommandException if synchronization failed in such a way that instance startup should not be attempted.

Throws:
CommandException


Copyright © 2012 GlassFish Community. All Rights Reserved.