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 |
|---|---|
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(InetAddress 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.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.StorageNodeLoadComposite> |
getStorageNodeComposites() |
List<org.rhq.core.domain.cloud.StorageNode> |
getStorageNodes() |
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.
|
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 |
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 storageNodeConfiguration)
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 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 StorageNodeManagerLocaldeployStorageNode 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 StorageNodeManagerLocalundeployStorageNode in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNode - storage node to be deployed to the clusterpublic 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)
StorageNodeManagerLocalReturns the summary of load of the storage node.
the subject needs to have MANAGE_SETTINGS permissions.
getLoad in interface StorageNodeManagerLocalgetLoad 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 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()
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)
StorageNodeManagerLocalfindStorageNodesByCriteria in interface StorageNodeManagerLocalfindStorageNodesByCriteria in interface StorageNodeManagerRemotesubject - callercriteria - the criteriapublic org.rhq.core.domain.cloud.StorageNode findStorageNodeByAddress(InetAddress 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)
StorageNodeManagerLocal
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 StorageNodeManagerLocalrunClusterMaintenance 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)
StorageNodeManagerLocalfindNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerLocalfindNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerRemotesubject - subjectpublic 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)
StorageNodeManagerLocalfindNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerLocalfindNotAcknowledgedStorageNodeAlerts in interface StorageNodeManagerRemotesubject - subjectpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAllStorageNodeAlerts(org.rhq.core.domain.auth.Subject subject)
StorageNodeManagerLocalfindAllStorageNodeAlerts in interface StorageNodeManagerLocalfindAllStorageNodeAlerts in interface StorageNodeManagerRemotesubject - subjectpublic 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)
StorageNodeManagerLocalfindAllStorageNodeAlerts in interface StorageNodeManagerLocalfindAllStorageNodeAlerts in interface StorageNodeManagerRemotesubject - subjectpublic 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 StorageNodeManagerLocalretrieveConfiguration 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 storageNodeConfiguration)
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 StorageNodeManagerLocalupdateConfiguration in interface StorageNodeManagerRemotesubject - user that must have proper permissionsstorageNodeConfiguration - 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 StorageNodeManagerLocalCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.