public class StorageNodeManagerBean extends Object implements StorageNodeManagerLocal, StorageNodeManagerRemote
STORAGE_NODE_GROUP_NAME, STORAGE_NODE_PLUGIN_NAME, STORAGE_NODE_RESOURCE_TYPE_NAME| Constructor and Description |
|---|
StorageNodeManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
ackFailedOperation(org.rhq.core.domain.auth.Subject subject,
int storageNodeId) |
org.rhq.core.domain.cloud.StorageNode |
createStorageNode(org.rhq.core.domain.resource.Resource resource,
org.rhq.core.domain.cloud.StorageClusterSettings clusterSettings) |
void |
deployStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Runs the deploy operations on the given storage node.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findAllStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject)
Fetches all the Storage Node related alerts.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findAllStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Fetches all the Storage Node related alerts for the specified storage node.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findNotAcknowledgedStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject)
Fetches the list of Storage Node related alerts that have not yet been acknowledged.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findNotAcknowledgedStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Fetches the list of Storage Node related alerts that have not yet been acknowledged for the
specified storage node.
|
Map<Integer,Integer> |
findResourcesWithAlertDefinitions()
Find ids for all resources and sub-resources of Storage Nodes that
have alert definitions.
|
Integer[] |
findResourcesWithAlertDefinitions(org.rhq.core.domain.cloud.StorageNode storageNode)
Find ids for all resources and sub-resources, of the specified storage node, that
have alert definitions.
|
org.rhq.core.domain.cloud.StorageNode |
findStorageNodeByAddress(String address) |
Map<String,List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findStorageNodeLoadDataForLast(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
long beginTime,
long endTime,
int numPoints) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.StorageNode> |
findStorageNodesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.StorageNodeCriteria criteria)
Fetches the list of
StorageNode entities based on provided criteria. |
List<org.rhq.core.domain.cloud.StorageNode> |
getClusterNodes() |
org.rhq.core.domain.cloud.StorageNodeLoadComposite |
getLoad(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
long beginTime,
long endTime)
Returns the summary of load of the storage node.
|
com.google.common.util.concurrent.ListenableFuture<List<org.rhq.core.domain.cloud.StorageNodeLoadComposite>> |
getLoadAsync(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
long beginTime,
long endTime) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.StorageNodeLoadComposite> |
getStorageNodeComposites(org.rhq.core.domain.auth.Subject subject) |
List<org.rhq.core.domain.cloud.StorageNode> |
getStorageNodes() |
org.rhq.core.domain.cloud.StorageNode |
linkExistingStorageNodeToResource(org.rhq.core.domain.cloud.StorageNode storageNode) |
void |
linkResource(org.rhq.core.domain.resource.Resource resource) |
void |
prepareNodeForUpgrade(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Prepares the node for subsequent upgrade.
|
void |
resetInNewTransaction()
Resets all StorageNode errorMessage and failedOperation values to null.
|
org.rhq.core.domain.cloud.StorageNodeConfigurationComposite |
retrieveConfiguration(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Returns the current configuration of the storage node.
|
void |
runClusterMaintenance(org.rhq.core.domain.auth.Subject subject)
Schedules read repair to run on the storage cluster.
|
void |
scheduleOperationInNewTransaction(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule) |
void |
scheduleSnapshotManagement(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageClusterSettings clusterSettings) |
void |
scheduleSnapshotManagementOperationsForStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
org.rhq.core.domain.cloud.StorageClusterSettings settings) |
void |
undeployStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
Runs the undeploy operations on the given storage node.
|
boolean |
updateConfiguration(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNodeConfigurationComposite newStorageNodeConfigurationComposite)
Updates the current configuration of the storage node.
|
void |
updateConfigurationAsync(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNodeConfigurationComposite storageNodeConfiguration) |
public void linkResource(org.rhq.core.domain.resource.Resource resource)
linkResource in interface StorageNodeManagerLocalpublic org.rhq.core.domain.cloud.StorageNode linkExistingStorageNodeToResource(org.rhq.core.domain.cloud.StorageNode storageNode)
linkExistingStorageNodeToResource in interface StorageNodeManagerLocalpublic org.rhq.core.domain.cloud.StorageNode createStorageNode(org.rhq.core.domain.resource.Resource resource,
org.rhq.core.domain.cloud.StorageClusterSettings clusterSettings)
createStorageNode in interface StorageNodeManagerLocalpublic void deployStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerRemoteRuns the deploy operations on the given storage node. This operation should ensure the node will be part of the RHQ storage cluster.
This will move the storage node from operation mode INSTALLED to the mode NORMAL going through following phases:
ANNOUNCEBOOTSTRAPADD_MAINTENANCEThis can be run also on a storage node that is in any intermediate modes mentioned above, because of some failure during the deployment process.
The subject needs to have MANAGE_SETTINGS permissions.
deployStorageNode in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - storage node to be deployed to the clusterpublic void undeployStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerRemoteRuns the undeploy operations on the given storage node. This operation should ensure the node will removed from the RHQ storage cluster.
This will move the storage node from operation mode NORMAL or any other mode to the mode UNINSTALL. At the end of the day,
the node is removed also from the relational database. Currently there is no way to add it back.
WARNING: Run this operation only if you know what you are doing.
The subject needs to have MANAGE_SETTINGS permissions.
undeployStorageNode in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - storage node to be deployed to the clusterpublic void resetInNewTransaction()
StorageNodeManagerLocalresetInNewTransaction in interface StorageNodeManagerLocalpublic org.rhq.core.domain.cloud.StorageNodeLoadComposite getLoad(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
long beginTime,
long endTime)
StorageNodeManagerRemoteReturns the summary of load of the storage node.
The subject needs to have MANAGE_SETTINGS permissions.
getLoad in interface StorageNodeManagerRemotesubject - user that must have proper permissionsnode - storage node entity (it can be a new object, but the id should be set properly)beginTime - the start timeendTime - the end timeStorageNodeLoadComposite with the aggregate measurement data of selected metricspublic com.google.common.util.concurrent.ListenableFuture<List<org.rhq.core.domain.cloud.StorageNodeLoadComposite>> getLoadAsync(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.cloud.StorageNode node, long beginTime, long endTime)
getLoadAsync in interface StorageNodeManagerLocalpublic List<org.rhq.core.domain.cloud.StorageNode> getStorageNodes()
getStorageNodes in interface StorageNodeManagerLocalpublic List<org.rhq.core.domain.cloud.StorageNode> getClusterNodes()
getClusterNodes in interface StorageNodeManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.StorageNodeLoadComposite> getStorageNodeComposites(org.rhq.core.domain.auth.Subject subject)
getStorageNodeComposites in interface StorageNodeManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.StorageNode> findStorageNodesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.StorageNodeCriteria criteria)
StorageNodeManagerRemoteFetches the list of StorageNode entities based on provided criteria.
The subject needs to have MANAGE_SETTINGS permissions.
findStorageNodesByCriteria in interface StorageNodeManagerRemotesubject - user that must have proper permissionscriteria - the criteriapublic org.rhq.core.domain.cloud.StorageNode findStorageNodeByAddress(String address)
findStorageNodeByAddress in interface StorageNodeManagerLocalpublic void prepareNodeForUpgrade(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerLocalPrepares the node for subsequent upgrade.
CAUTION: this method will set the RHQ server to maintenance mode, RHQ storage flushes all the data to disk and backup of all the keyspaces is created
the subject needs to have MANAGE_SETTINGS and MANAGE_INVENTORY permissions.
prepareNodeForUpgrade in interface StorageNodeManagerLocalsubject - callerstorageNode - storage node on which the prepareForUpgrade operation should be runpublic void runClusterMaintenance(org.rhq.core.domain.auth.Subject subject)
StorageNodeManagerRemote
Schedules read repair to run on the storage cluster. The repair operation is executed one node at a time. This
method is invoked from StorageClusterReadRepairJob
as part of regularly scheduled maintenance.
NOTE: Repair is one of the most resource-intensive operations that a storage node performs. Make sure you know what you are doing if you invoke this method outside of the regularly scheduled maintenance window.
the subject needs to have MANAGE_SETTINGS permissions.
runClusterMaintenance in interface StorageNodeManagerRemotesubject - user that must have proper permissionspublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findNotAcknowledgedStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject)
StorageNodeManagerRemoteFetches the list of Storage Node related alerts that have not yet been acknowledged.
The subject needs to have MANAGE_SETTINGS permissions.
findNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerRemotesubject - user that must have proper permissionspublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findNotAcknowledgedStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerRemoteFetches the list of Storage Node related alerts that have not yet been acknowledged for the specified storage node.
The subject needs to have MANAGE_SETTINGS permissions.
findNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - the storage nodepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAllStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject)
StorageNodeManagerRemoteFetches all the Storage Node related alerts.
The subject needs to have MANAGE_SETTINGS permissions.
findAllStorageNodeAlerts in interface StorageNodeManagerRemotesubject - user that must have proper permissionspublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAllStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerRemoteFetches all the Storage Node related alerts for the specified storage node.
The subject needs to have MANAGE_SETTINGS permissions.
findAllStorageNodeAlerts in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - the storage nodepublic Map<Integer,Integer> findResourcesWithAlertDefinitions()
StorageNodeManagerLocalfindResourcesWithAlertDefinitions in interface StorageNodeManagerLocalpublic Integer[] findResourcesWithAlertDefinitions(org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerLocalStorageNodeManagerLocal.findResourcesWithAlertDefinitions() for more details.findResourcesWithAlertDefinitions in interface StorageNodeManagerLocalstorageNode - storage nodepublic org.rhq.core.domain.cloud.StorageNodeConfigurationComposite retrieveConfiguration(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode storageNode)
StorageNodeManagerRemoteReturns the current configuration of the storage node.
For updating the configuration see StorageNodeManagerRemote.retrieveConfiguration(Subject,StorageNode).
The subject needs to have MANAGE_SETTINGS permissions.
retrieveConfiguration in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - the storage node for which we want to get the configurationStorageNodeConfigurationComposite with the configuration propertiespublic void updateConfigurationAsync(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNodeConfigurationComposite storageNodeConfiguration)
updateConfigurationAsync in interface StorageNodeManagerLocalpublic boolean updateConfiguration(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNodeConfigurationComposite newStorageNodeConfigurationComposite)
StorageNodeManagerRemoteUpdates the current configuration of the storage node.
For retrieving the configuration see StorageNodeManagerRemote.updateConfiguration(Subject,StorageNodeConfigurationComposite).
The subject needs to have MANAGE_SETTINGS permissions.
updateConfiguration in interface StorageNodeManagerRemotesubject - user that must have proper permissionsnewStorageNodeConfigurationComposite - instance of StorageNodeConfigurationComposite with the configuration propertiespublic void scheduleOperationInNewTransaction(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule)
scheduleOperationInNewTransaction in interface StorageNodeManagerLocalpublic Map<String,List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findStorageNodeLoadDataForLast(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.cloud.StorageNode node, long beginTime, long endTime, int numPoints)
findStorageNodeLoadDataForLast in interface StorageNodeManagerLocalpublic void scheduleSnapshotManagementOperationsForStorageNode(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageNode node,
org.rhq.core.domain.cloud.StorageClusterSettings settings)
scheduleSnapshotManagementOperationsForStorageNode in interface StorageNodeManagerLocalpublic void scheduleSnapshotManagement(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.StorageClusterSettings clusterSettings)
scheduleSnapshotManagement in interface StorageNodeManagerLocalpublic void ackFailedOperation(org.rhq.core.domain.auth.Subject subject,
int storageNodeId)
ackFailedOperation in interface StorageNodeManagerLocalCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.