|
EAC Toolkit 3.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.endeca.soleng.eac.toolkit.base.EacElement
com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.component.CustomComponent
public class CustomComponent
Custom components are "provisioned" like a component in the app configuration, but provisioning is stored as a set of custom properties (key value pairs) on the provisioned host on which this component runs.
| Field Summary |
|---|
| Fields inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
|---|
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir |
| Constructor Summary | |
|---|---|
CustomComponent()
Custom component constructor. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
buildEacStub()
Builds the map of properties that serve as the definition for this component. |
java.util.Map<java.lang.String,java.lang.String> |
getCustomDirectories()
|
Host |
getHost()
Constructs a host object by specifying a host ID that should be retrieved from the EAC. |
java.lang.String |
getHostId()
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getProperty(java.lang.String propName)
Retrieves a custom property with the specified name. |
boolean |
isDefined()
Extending objects will implement this method, returning true if the provisioned object's definition is set in the EAC. |
boolean |
isDefinitionChanged()
Extending objects will implement this method, returning true if the provisioned object's definition has changed in the EAC. |
void |
removeDefinition()
Extending objects will implement this method to remove the definition of the provisioned object from the EAC. |
void |
setCustomDirectories(java.util.Map<java.lang.String,java.lang.String> customDirectories)
|
void |
setDefinition()
Extending objects will implement this method to add the definition of the provisioned object to the EAC. |
void |
setHostId(java.lang.String hostId)
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
|
void |
updateDefinition()
Extending objects will implement this method to update the definition of the provisioned object in the EAC. |
| Methods inherited from class com.endeca.soleng.eac.toolkit.base.Provisionable |
|---|
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinition |
| Methods inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
|---|
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomComponent()
| Method Detail |
|---|
public boolean isDefined()
throws EacCommunicationException,
EacProvisioningException
Provisionable
isDefined in class ProvisionableEacCommunicationException - If a communication error occurs while
retrieving the provisioning port.
EacProvisioningException - If an error occurs while trying to retrieve
the object definition from the EAC.
public boolean isDefinitionChanged()
throws EacCommunicationException,
EacProvisioningException
Provisionable
isDefinitionChanged in class ProvisionableEacCommunicationException - If a communication error occurs while
retrieving the provisioning port.
EacProvisioningException - If an error occurs while trying to retrieve
the object definition from the EAC.
public void removeDefinition()
throws EacCommunicationException,
EacComponentControlException
Provisionable
removeDefinition in class ProvisionableEacCommunicationException - If a communication error occurs while
retrieving the provisioning port.
EacComponentControlException - If an error occurs while trying to
start, stop or check the status of a component.
public void setDefinition()
throws EacCommunicationException
Provisionable
setDefinition in class ProvisionableEacCommunicationException - If a communication error occurs while
retrieving the provisioning port.
public void updateDefinition()
throws EacCommunicationException,
EacComponentControlException,
EacProvisioningException,
AppConfigurationException
Provisionable
updateDefinition in class ProvisionableEacCommunicationException - If a communication error occurs while
retrieving the provisioning port.
EacComponentControlException - If an error occurs while trying to
start, stop or check the status of a component.
EacProvisioningException - If an error occurs while provisioning the
object or an associated object.
AppConfigurationException - If an object's configuration is invalid.public java.util.Map<java.lang.String,java.lang.String> buildEacStub()
public Host getHost()
throws EacCommunicationException
EacCommunicationExceptionpublic java.lang.String getProperty(java.lang.String propName)
propName - Name of the property to retrieve.
public java.util.Map<java.lang.String,java.lang.String> getCustomDirectories()
public void setCustomDirectories(java.util.Map<java.lang.String,java.lang.String> customDirectories)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
|
EAC Toolkit 3.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@VERSION PRODUCT: EAC Toolkit (eacToolkit) VERSION: 3.2.1 BUILD: NONE ARCH_OS: n/a DATE: 2011-11-10T16:21:05-0500