public class ForgeCluster
extends com.endeca.soleng.eac.toolkit.base.Provisionable
Constructor and Description |
---|
ForgeCluster()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addForge(ForgeComponent forge)
Adds a forge to the group.
|
void |
archiveLogDir() |
void |
archiveState() |
void |
cleanDirs() |
void |
getData() |
ForgeComponent |
getForgeById(String forgeId)
Retrieves the Forge with the specified ID from the group.
|
List<String> |
getForgeGroupNames()
Retrieves a list of all the forge groups with which the group's forges
are associated..
|
Map<String,List<ForgeComponent>> |
getForgeGroups()
Retrieves a map, whose keys are the forge groups defined for the application,
and whose values are lists of forges belonging to each forge group.
|
List<ForgeComponent> |
getForges() |
List<ForgeComponent> |
getForgesInForgeGroup(String forgeGroup)
Retrieves a list of all forges belonging to the specified forge group.
|
boolean |
isDefined()
Checks whether the member forges in the group are defined.
|
boolean |
isDefinitionChanged()
Checks whether the member forges in the group have changed.
|
boolean |
isGetDataInParallel() |
void |
removeDefinition()
Removes the definition of each defined forge in the group.
|
void |
run() |
void |
setCachedAppDefinition(com.endeca.eac.client.ApplicationType cachedAppDefinition) |
void |
setDefinition()
Sets the definition of each forge in the group that is not already defined.
|
void |
setForges(List<ForgeComponent> forges) |
void |
setGetDataInParallel(boolean getDataInParallel) |
void |
start() |
void |
stop() |
void |
updateDefinition()
Updates the definition of each forge in the group.
|
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public void cleanDirs() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
public void getData() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
public void archiveLogDir() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
public void archiveState() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
public void start() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void stop() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void run() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
public boolean isDefined() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
isDefined
in class com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
- If an error occurs while trying to retrieve
a component definition from the EAC.public boolean isDefinitionChanged() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
isDefinitionChanged
in class com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
- If an error occurs while trying to retrieve
a component definition from the EAC.public void removeDefinition() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
removeDefinition
in class com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
- If an error occurs while trying to retrieve
a component definition from the EAC.com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
public void setDefinition() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
setDefinition
in class com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.public void updateDefinition() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, com.endeca.soleng.eac.toolkit.exception.EacProvisioningException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
updateDefinition
in class com.endeca.soleng.eac.toolkit.base.Provisionable
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacProvisioningException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
public List<ForgeComponent> getForges()
public ForgeComponent getForgeById(String forgeId)
forgeId
- ID of the forge to retrieve.public Map<String,List<ForgeComponent>> getForgeGroups()
public List<ForgeComponent> getForgesInForgeGroup(String forgeGroup)
forgeGroup
- Name of the forge group whose member forges should
be retrieved.public List<String> getForgeGroupNames()
public void setForges(List<ForgeComponent> forges)
public void addForge(ForgeComponent forge)
forge
- public boolean isGetDataInParallel()
public void setGetDataInParallel(boolean getDataInParallel)
public void setCachedAppDefinition(com.endeca.eac.client.ApplicationType cachedAppDefinition)
setCachedAppDefinition
in class com.endeca.soleng.eac.toolkit.base.Provisionable
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.