|
EAC Components 3.2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.soleng.eac.toolkit.base.EacElement com.endeca.soleng.eac.toolkit.base.Provisionable com.endeca.soleng.eac.toolkit.component.cluster.DgraphCluster
public class DgraphCluster
Field Summary |
---|
Fields inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
---|
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir |
Constructor Summary | |
---|---|
DgraphCluster()
Default constructor. |
Method Summary | |
---|---|
void |
addDgraph(DgraphComponent dgraph)
Adds a dgraph to the group. |
void |
applyConfigUpdate()
Updates the configuration of dgraphs in the group. |
void |
applyIndex()
Cycles the dgraphs in the group. |
void |
applyPartialUpdates()
Updates the dgraphs in the group. |
void |
cleanDirs()
|
void |
cleanLocalDgraphConfigDirs()
|
void |
cleanLocalIndexDirs()
|
void |
cleanLocalPartialsDirs()
|
void |
cleanLocalXQueryDirs()
|
void |
copyCumulativePartialUpdatesToDgraphServers()
Retrieves cumulative partials for each dgraph in the group. |
void |
copyDgraphConfigToDgraphServers()
Retrieves dgraph config for each dgraph in the group. |
void |
copyIndexToDgraphServers()
Retrieves a new index for each dgraph in the group. |
void |
copyPartialUpdateToDgraphServers()
Retrieves a partial update for each dgraph in the group. |
void |
copyXQueryToDgraphServers()
Retrieves XQuery modules for each dgraph in the group. |
void |
cycle()
|
DgraphComponent |
getDgraphById(java.lang.String dgraphId)
Retrieves the Dgraph with the specified ID from the group. |
java.util.Map<java.lang.String,java.util.List<DgraphComponent>> |
getDgraphGroups(java.lang.String groupProp)
Retrieves a map, whose keys are the groups defined for the application, and whose values are lists of dgraphs belonging to each group. |
java.util.Map<java.lang.String,java.util.List<DgraphComponent>> |
getDgraphRestartGroups()
Retrieves a map, whose keys are the restart groups defined for the application, and whose values are lists of dgraphs belonging to each restart group. |
java.util.List<DgraphComponent> |
getDgraphs()
|
java.util.List<DgraphComponent> |
getDgraphsInGroup(java.lang.String groupProp,
java.lang.String group)
Retrieves a list of all dgraphs belonging to the specified group. |
java.util.List<DgraphComponent> |
getDgraphsInRestartGroup(java.lang.String restartGroup)
Retrieves a list of all dgraphs belonging to the specified restart group. |
java.util.List<java.lang.String> |
getGroups(java.lang.String groupProp)
Retrieves a list of all the groups with which the group's dgraphs are associated. |
java.util.List<java.lang.String> |
getRestartGroups()
Retrieves a list of all the restart groups with which the group's dgraphs are associated. |
boolean |
isDefined()
Checks whether the member dgraphs in the group are defined. |
boolean |
isDefinitionChanged()
Checks whether the member dgraphs in the group have changed. |
boolean |
isGetDataInParallel()
|
void |
reloadXqueryModules()
Reloads XQuery modules of dgraphs in the group. |
void |
removeDefinition()
Removes the definition of each defined dgraph in the group. |
void |
setCachedAppDefinition(com.endeca.eac.client.ApplicationType cachedAppDefinition)
|
void |
setDefinition()
Sets the definition of each dgraph in the group that is not already defined. |
void |
setDgraphs(java.util.List<DgraphComponent> dgraphs)
|
void |
setGetDataInParallel(boolean getDataInParallel)
|
void |
start()
|
void |
stop()
|
void |
updateDefinition()
Updates the definition of each dgraph in the group. |
Methods inherited from class com.endeca.soleng.eac.toolkit.base.Provisionable |
---|
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition |
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 DgraphCluster()
Method Detail |
---|
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, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
public void cleanLocalIndexDirs() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
public void cleanLocalPartialsDirs() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
public void cleanLocalDgraphConfigDirs() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
public void cleanLocalXQueryDirs() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
public void copyIndexToDgraphServers() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyPartialUpdateToDgraphServers() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyCumulativePartialUpdatesToDgraphServers() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyDgraphConfigToDgraphServers() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
public void copyXQueryToDgraphServers() throws com.endeca.soleng.eac.toolkit.exception.AppConfigurationException, com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
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 cycle() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
java.lang.InterruptedException
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
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 applyIndex() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
cycling a component.
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
- If an error occurs while trying to
cycle a component.
java.lang.InterruptedException
- If the thread is interrupted while waiting for
a component to finish.
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
- If a utility fails to initialize because of
insufficient configuration information.public void applyPartialUpdates() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
cycling a component.
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
- If an error occurs while trying to
cycle a component.
java.lang.InterruptedException
- If the thread is interrupted while waiting for
a component to finish.
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
- If a utility fails to initialize because of
insufficient configuration information.public void applyConfigUpdate() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
updating a component.
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
- If an error occurs while trying to
update a component.
java.lang.InterruptedException
- If the thread is interrupted while waiting for
a component to finish.
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
- If a utility fails to initialize because of
insufficient configuration information.public void reloadXqueryModules() throws com.endeca.soleng.eac.toolkit.exception.EacCommunicationException, com.endeca.soleng.eac.toolkit.exception.EacComponentControlException, java.lang.InterruptedException, com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
- If a communication error occurs while
updating a component.
com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
- If an error occurs while trying to
update a component.
java.lang.InterruptedException
- If the thread is interrupted while waiting for
a component to finish.
com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
- If a utility fails to initialize because of
insufficient configuration information.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 java.util.List<DgraphComponent> getDgraphs()
public DgraphComponent getDgraphById(java.lang.String dgraphId)
dgraphId
- ID of the dgraph to retrieve.
public java.util.Map<java.lang.String,java.util.List<DgraphComponent>> getDgraphRestartGroups()
public java.util.Map<java.lang.String,java.util.List<DgraphComponent>> getDgraphGroups(java.lang.String groupProp)
public java.util.List<DgraphComponent> getDgraphsInRestartGroup(java.lang.String restartGroup)
restartGroup
- Name of the restart group whose member dgraphs should
be retrieved.
public java.util.List<DgraphComponent> getDgraphsInGroup(java.lang.String groupProp, java.lang.String group)
groupProp
- Name of the grouping property (e.g. restartGroup, updateGroup)group
- Name of the group whose member dgraphs should
be retrieved.
public java.util.List<java.lang.String> getRestartGroups()
public java.util.List<java.lang.String> getGroups(java.lang.String groupProp)
groupProp
- Name of the grouping property (e.g. restartGroup, updateGroup)
public void setDgraphs(java.util.List<DgraphComponent> dgraphs)
public void addDgraph(DgraphComponent dgraph)
dgraph
- 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
|
EAC Components 3.2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@VERSION PRODUCT: EAC Components (eacComponents) VERSION: 3.2.2 BUILD: NONEDEV ARCH_OS: n/a DATE: 2012-02-28T13:13:23-0500