public class Host extends java.lang.Object implements EnvironmentBean, Dependency, SchemaBean, EnvironmentDeployInstance, InvocationBuilder
| Constructor and Description |
|---|
Host(HostContainer parent,
HostController controller,
java.lang.String hostName)
Creates the webApp with its environment loader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DispatchRule dispatchRule)
Adds a rewrite dispatch rule
|
void |
add(RewriteFilter dispatchAction)
Adds a rewrite dispatch rule
|
void |
addEarDefault(EarConfig config) |
void |
addEarDeploy(EarDeployGenerator earDeploy)
Adds the ear-expansion
|
void |
addErrorPage(ErrorPage errorPage) |
void |
addHostAlias(java.lang.String name)
Adds an alias.
|
void |
addHostAliasRegexp(java.lang.String name)
Adds an alias.
|
void |
addWarDeploy(WebAppExpandDeployGenerator webAppDeploy)
Sets the war-expansion
|
void |
addWebApp(WebAppConfig config) |
void |
addWebAppDefault(WebAppConfig config) |
void |
addWebAppDeploy(WebAppExpandDeployGenerator deploy)
Sets the war-expansion
|
Invocation |
buildInvocation(Invocation invocation)
Builds the invocation for the host.
|
static java.lang.String |
calculateCanonicalIPv6(java.lang.String host) |
void |
clearCache()
Clears the cache
|
EarDeployGenerator |
createEarDeploy()
Sets the ear-expansion
|
RewriteDispatch |
createRewriteDispatch()
Adds rewrite-dispatch (backward compat).
|
WebAppExpandDeployGenerator |
createWarDeploy()
Sets the war-expansion
|
WebAppExpandDeployGenerator |
createWebAppDeploy()
Sets the war-expansion
|
void |
destroy()
Closes the host.
|
HostMXBean |
getAdmin()
Returns the admin.
|
java.util.ArrayList<java.lang.String> |
getAliasList()
Gets the alias list.
|
Broker |
getBamBroker()
Returns the bam broker.
|
EnvironmentClassLoader |
getClassLoader()
Gets the environment class loader.
|
CloudCluster |
getCluster()
Returns the current cluster.
|
java.lang.String |
getConfigETag()
Returns the config etag.
|
java.lang.Throwable |
getConfigException()
Gets the config exception.
|
ErrorPageManager |
getErrorPageManager() |
java.lang.String |
getHostName()
Returns the canonical host name.
|
java.lang.String |
getId()
Returns id for the host
|
java.lang.String |
getIdTail() |
static Host |
getLocal()
Returns the local host.
|
java.lang.String |
getName()
Returns the entry name
|
Path |
getRootDirectory() |
java.lang.String |
getSchema()
Returns the relax schema.
|
java.lang.String |
getSecureHostName()
Returns the secure host name.
|
ServletService |
getServer()
Returns the owning server.
|
LifecycleState |
getState() |
java.lang.String |
getURL()
Returns the URL for the container.
|
WebAppContainer |
getWebAppContainer() |
void |
init()
Initialize the instance.
|
boolean |
isDefaultHost()
Returns true if matches the default host.
|
boolean |
isDeployError()
Returns true if the host deploy was an error
|
boolean |
isDeployIdle()
Returns true if the host is idle
|
boolean |
isModified()
Returns true if the host is modified.
|
boolean |
isModifiedNow()
Returns true if the host is modified.
|
java.lang.Boolean |
isRequestSecure() |
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification.
|
void |
preConfigInit()
Initialization before configuration
|
void |
setAccessLog(AccessLog log) |
void |
setConfigETag(java.lang.String etag)
Returns the config etag.
|
void |
setConfigException(java.lang.Throwable e)
Sets the config exception.
|
void |
setDocumentDirectory(Path docDir)
Sets the doc dir.
|
void |
setHostName(java.lang.String name)
Sets the canonical host name.
|
void |
setSecureHostName(java.lang.String secureHostName)
Sets the secure host name.
|
void |
setSetRequestSecure(boolean isSecure) |
void |
setWarDir(Path warDir)
Sets the war-dir for backwards compatibility.
|
void |
setWarExpandDir(Path warDir)
Sets the war-expand-dir.
|
void |
start()
Starts the host.
|
boolean |
stop()
Stops the host.
|
java.lang.String |
toString() |
public Host(HostContainer parent, HostController controller, java.lang.String hostName)
public static Host getLocal()
@Configurable public void setHostName(java.lang.String name) throws ConfigException
ConfigExceptionpublic java.lang.String getName()
public java.lang.String getHostName()
public java.lang.String getSecureHostName()
public void setSecureHostName(java.lang.String secureHostName)
public void setSetRequestSecure(boolean isSecure)
public java.lang.Boolean isRequestSecure()
public Broker getBamBroker()
public java.lang.String getSchema()
getSchema in interface SchemaBeanpublic java.lang.String getId()
public java.lang.String getIdTail()
public java.lang.String getURL()
public void addHostAlias(java.lang.String name)
public LifecycleState getState()
public java.util.ArrayList<java.lang.String> getAliasList()
@Configurable public void addHostAliasRegexp(java.lang.String name)
public boolean isDefaultHost()
public EnvironmentClassLoader getClassLoader()
getClassLoader in interface DeployInstancegetClassLoader in interface EnvironmentBeanpublic Path getRootDirectory()
@Configurable public void setAccessLog(AccessLog log)
public void setDocumentDirectory(Path docDir)
public WebAppContainer getWebAppContainer()
@Configurable public void addErrorPage(ErrorPage errorPage)
public ErrorPageManager getErrorPageManager()
@Configurable public void addWebApp(WebAppConfig config)
@Configurable public void addWebAppDefault(WebAppConfig config)
@Configurable public WebAppExpandDeployGenerator createWarDeploy()
@Configurable public void addWarDeploy(WebAppExpandDeployGenerator webAppDeploy) throws ConfigException
ConfigException@Configurable public WebAppExpandDeployGenerator createWebAppDeploy()
public void addWebAppDeploy(WebAppExpandDeployGenerator deploy) throws ConfigException
ConfigException@Configurable public EarDeployGenerator createEarDeploy() throws java.lang.Exception
java.lang.Exception@Configurable public void addEarDeploy(EarDeployGenerator earDeploy) throws java.lang.Exception
java.lang.Exception@Configurable public void addEarDefault(EarConfig config)
@Configurable public void setWarDir(Path warDir) throws ConfigException
ConfigExceptionpublic void setWarExpandDir(Path warDir)
public void add(DispatchRule dispatchRule)
public void add(RewriteFilter dispatchAction)
public RewriteDispatch createRewriteDispatch()
public void setConfigException(java.lang.Throwable e)
setConfigException in interface DeployInstancepublic java.lang.Throwable getConfigException()
getConfigException in interface DeployInstancepublic ServletService getServer()
public CloudCluster getCluster()
public java.lang.String getConfigETag()
public void setConfigETag(java.lang.String etag)
public HostMXBean getAdmin()
public void preConfigInit()
preConfigInit in interface EnvironmentDeployInstancepublic void init()
EnvironmentDeployInstanceinit in interface EnvironmentDeployInstancepublic void start()
start in interface DeployInstancepublic void clearCache()
public Invocation buildInvocation(Invocation invocation) throws ConfigException
buildInvocation in interface InvocationBuilderConfigExceptionpublic boolean isModified()
isModified in interface DeployInstanceisModified in interface Dependencypublic boolean isModifiedNow()
isModifiedNow in interface DeployInstancepublic boolean logModified(java.util.logging.Logger log)
logModified in interface DeployInstancelogModified in interface Dependencypublic boolean isDeployError()
public boolean isDeployIdle()
isDeployIdle in interface DeployInstancepublic boolean stop()
public void destroy()
destroy in interface DeployInstancepublic static java.lang.String calculateCanonicalIPv6(java.lang.String host)
shortHost - public java.lang.String toString()
toString in class java.lang.Object