public class HostController extends EnvironmentDeployController<Host,HostConfig>
APPLICATION_HASH_PATH_lifecycle, REDEPLOY_CHECK_INTERVAL| Constructor and Description |
|---|
HostController(java.lang.String id,
Path rootDirectory,
java.lang.String hostName,
HostContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigDefault(HostConfig config)
Adds a default config.
|
void |
addDepend(Path depend)
Adds a dependent file.
|
void |
addExtHostAlias(java.lang.String name)
Adds an extension host alias, e.g.
|
void |
addExtHostAliasRegexp(java.util.regex.Pattern name)
Adds an extension host alias, e.g.
|
void |
addHostAlias(java.lang.String name)
Adds a host alias.
|
protected void |
configureInstance(Host host)
Creates the host.
|
boolean |
equals(java.lang.Object o)
Returns equality.
|
protected void |
extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context) |
HostMXBean |
getAdmin()
Returns the host admin.
|
DeployControllerType |
getControllerType()
Returns the controller type
|
protected DeployControllerAdmin |
getDeployAdmin()
Returns the deploy admin.
|
java.util.ArrayList<java.lang.String> |
getHostAliases()
Returns the host aliases.
|
java.lang.String |
getHostName()
Returns the host's canonical name
|
protected java.util.logging.Logger |
getLog()
Returns the appropriate log for debugging.
|
protected java.lang.String |
getMBeanId()
Returns the "name" property.
|
java.lang.String |
getName()
Returns the Resin host name.
|
protected void |
initBegin()
Initialize the entry.
|
protected Host |
instantiateDeployInstance()
Creates a new instance of the host object.
|
boolean |
isNameMatch(java.lang.String name)
Returns true for a matching name.
|
void |
merge(DeployControllerApi<Host> newControllerV)
Merges with the old controller.
|
void |
setContainer(HostContainer container) |
void |
setRegexp(java.util.regex.Pattern regexp)
Sets the regexp pattern
|
void |
setRegexpName(java.lang.String name)
Returns the host's canonical name
|
void |
setRootDirectoryPattern(java.lang.String rootDirectoryPattern)
Sets the root directory pattern
|
java.lang.String |
toString()
Returns a printable view.
|
configureInstanceVariables, destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, fillInitList, getArchivePath, getClassPath, getConfig, getConfigException, getErrorMessage, getMBean, getMBeanTypeName, getObjectName, getPrologue, getRepositoryMetaData, getVariableMap, initEnd, setConfig, setConfigException, setPrologueaddDependencies, addExpandCleanupFileSet, addExpandPreserveFileset, addManifestClassPath, addParentExpandCleanupFileSet, controllerLogModified, deploy, deployImpl, getAutoDeployStage, getAutoDeployTag, getManifest, getManifestAttributes, getRepository, getRootDirectory, getVersionDependency, hashCode, isAllowRepository, isControllerModified, isControllerModifiedNow, onActive, onDestroy, onError, onRemove, onStop, onTagChange, postConfigureInstance, postExtract, preConfigureInstance, removeExpandDirectory, removeExpandDirectory, removeExpandDirectory, removeExpandFile, setAllowRepository, setArchivePath, setDependencyCheckInterval, setRootDirectory, setVersionDependency, undeploy, undeployImpladdLifecycleListener, alarm, close, createDeployInstance, destroyInstance, getActiveDeployInstance, getActiveWaitTime, getDeployInstance, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, isIdleTimeout, isModified, isModifiedNow, logModified, mergeRedeployCheckInterval, mergeRedeployMode, onStartComplete, remove, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, stopImpl, stopLazyImpl, subrequest, toRestart, toStart, toStop, updatepublic HostController(java.lang.String id,
Path rootDirectory,
java.lang.String hostName,
HostContainer container)
public void setContainer(HostContainer container)
public void addConfigDefault(HostConfig config)
EnvironmentDeployControlleraddConfigDefault in class EnvironmentDeployController<Host,HostConfig>public java.lang.String getName()
public java.lang.String getHostName()
public void setRegexpName(java.lang.String name)
public void addHostAlias(java.lang.String name)
public void addExtHostAlias(java.lang.String name)
public java.util.ArrayList<java.lang.String> getHostAliases()
public void addExtHostAliasRegexp(java.util.regex.Pattern name)
public void setRegexp(java.util.regex.Pattern regexp)
public DeployControllerType getControllerType()
DeployControllerApigetControllerType in interface DeployControllerApi<Host>getControllerType in class DeployController<Host>public void setRootDirectoryPattern(java.lang.String rootDirectoryPattern)
public void addDepend(Path depend)
public HostMXBean getAdmin()
protected DeployControllerAdmin getDeployAdmin()
getDeployAdmin in class EnvironmentDeployController<Host,HostConfig>protected void initBegin()
initBegin in class DeployController<Host>protected java.lang.String getMBeanId()
getMBeanId in class EnvironmentDeployController<Host,HostConfig>public boolean isNameMatch(java.lang.String name)
isNameMatch in interface DeployControllerApi<Host>isNameMatch in class EnvironmentDeployController<Host,HostConfig>public void merge(DeployControllerApi<Host> newControllerV)
merge in interface DeployControllerApi<Host>merge in class EnvironmentDeployController<Host,HostConfig>protected Host instantiateDeployInstance()
instantiateDeployInstance in class DeployController<Host>protected void configureInstance(Host host) throws java.lang.Exception
configureInstance in class EnvironmentDeployController<Host,HostConfig>java.lang.Exceptionprotected void extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context)
extendJMXContext in class EnvironmentDeployController<Host,HostConfig>protected java.util.logging.Logger getLog()
getLog in class DeployController<Host>public boolean equals(java.lang.Object o)
equals in class ExpandDeployController<Host>public java.lang.String toString()
toString in class EnvironmentDeployController<Host,HostConfig>