public class Host extends Provisionable
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
Host()
Default constructor.
|
Host(String appName,
String eacHost,
int eacPort,
String hostId,
boolean sslEnabled,
String dataPrefix,
String workingDir)
Constructor to initialize the host object from its EAC definition, by retrieving
the definition associated with the specified hostId.
|
Modifier and Type | Method and Description |
---|---|
com.endeca.eac.client.HostType |
buildEacStub()
Builds a HostType object to send to the EAC.
|
void |
constructFromEacStub(com.endeca.eac.client.HostType hostType)
Populates the fields in this object from associated values in the HostType
WSDL stub object.
|
Map<String,String> |
getCustomDirectories() |
String |
getDirectory(String dirName)
Retrieves the value of the directory with the specified name from
the provisioned host.
|
String |
getHostName() |
int |
getPort() |
Map<String,String> |
getProperties() |
String |
getProperty(String propName)
Retrieves the value of the property with the specified name from
the provisioned host.
|
com.endeca.eac.client.HostType |
instantiateEacStub() |
boolean |
isDefined()
Checks whether the host is defined in the EAC.
|
boolean |
isDefinitionChanged()
Compares the definition of the host in the EAC to the local definition.
|
void |
removeDefinition()
Removes the EAC provisioning of this host.
|
void |
setCustomDirectories(Map<String,String> customDirectories) |
void |
setDefinition()
Sets the EAC provisioning of this host.
|
void |
setHostName(String hostName) |
void |
setPort(int port) |
void |
setProperties(Map<String,String> properties) |
void |
updateDefinition()
Updates the EAC provisioning of this host.
|
void |
updateEacDefinition() |
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinition
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public Host()
public Host(String appName, String eacHost, int eacPort, String hostId, boolean sslEnabled, String dataPrefix, String workingDir) throws EacCommunicationException, EacProvisioningException, AppConfigurationException
hostId
- ID of the provisioned host to retrieve from the EAC.EacCommunicationException
EacProvisioningException
AppConfigurationException
public String getProperty(String propName)
propName
- Name of the property whose value will be retrieved.public String getDirectory(String dirName)
dirName
- Name of the provisioned directory whose value will be retrieved.public boolean isDefinitionChanged() throws EacCommunicationException, EacProvisioningException
isDefinitionChanged
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacProvisioningException
- If an error occurs while trying to retrieve
the host definition from the EAC.public boolean isDefined() throws EacCommunicationException, EacProvisioningException
isDefined
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacProvisioningException
- If an error occurs while trying to retrieve
the component definition from the EAC.public void updateDefinition() throws EacCommunicationException, EacComponentControlException, EacProvisioningException, AppConfigurationException
updateDefinition
in class Provisionable
EacComponentControlException
- If an error occurs while trying to
start, stop or check the status of the component.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.AppConfigurationException
- If a component configuration is invalid.EacProvisioningException
- If an error occurs while provisioning the
host or its associated components.public void removeDefinition() throws EacCommunicationException
removeDefinition
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.public void setDefinition() throws EacCommunicationException
setDefinition
in class Provisionable
EacCommunicationException
- If a communication error occurs while
setting the host definition.public void updateEacDefinition() throws EacCommunicationException, EacProvisioningException
public void constructFromEacStub(com.endeca.eac.client.HostType hostType)
hostType
- The HostType WSDL stub object from which to retrieve host
definition.public com.endeca.eac.client.HostType buildEacStub()
public com.endeca.eac.client.HostType instantiateEacStub()
public String getHostName()
public void setHostName(String hostName)
public int getPort()
public void setPort(int port)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.