public class GridTcpDiscoveryS3MetricsStore extends GridTcpDiscoveryMetricsStoreAdapter
For information about Amazon S3 visit aws.amazon.com.
setAwsCredentials(AWSCredentials))setBucketName(String))setClientConfiguration(ClientConfiguration))GridTcpDiscoveryMetricsStoreAdapter.setMetricsExpireTime(int))The store will create S3 bucket with configured name.
The bucket will contain entries with serialized metrics named like the following 94816A59-EB51-44EE-BB67-8B24B9C10A09.
Note that storing data in AWS S3 service will result in charges to your AWS account.
Choose another implementation of GridTcpDiscoveryMetricsStore for local
or home network tests.
DFLT_METRICS_EXPIRE_TIME| Constructor and Description |
|---|
GridTcpDiscoveryS3MetricsStore() |
| Modifier and Type | Method and Description |
|---|---|
Collection<UUID> |
allNodeIds()
Gets all node IDs currently contained in the store.
|
protected Map<UUID,GridNodeMetrics> |
metrics0(Collection<UUID> nodeIds)
Requests metrics from store in case local cached metrics are outdated.
|
void |
removeMetrics0(Collection<UUID> nodeIds)
Removes metrics from store.
|
void |
setAwsCredentials(com.amazonaws.auth.AWSCredentials cred)
Sets AWS credentials.
|
void |
setBucketName(String bucketName)
Sets bucket name for this store.
|
void |
setClientConfiguration(com.amazonaws.ClientConfiguration cfg)
Sets Amazon client configuration.
|
String |
toString() |
void |
updateLocalMetrics(UUID locNodeId,
GridNodeMetrics metrics)
Updates local node metrics in the store.
|
getMetricsExpireTime, metrics, removeMetrics, setMetricsExpireTimepublic void updateLocalMetrics(UUID locNodeId, GridNodeMetrics metrics) throws GridSpiException
locNodeId - Id of the local node (caller node).metrics - Local node metrics.GridSpiException - If an error occurs.protected Map<UUID,GridNodeMetrics> metrics0(Collection<UUID> nodeIds) throws GridSpiException
metrics0 in class GridTcpDiscoveryMetricsStoreAdapternodeIds - Nodes to request metrics for.GridSpiException - If any error occurs.public Collection<UUID> allNodeIds() throws GridSpiException
GridSpiException - if an error occurs.public void removeMetrics0(Collection<UUID> nodeIds) throws GridSpiException
removeMetrics0 in class GridTcpDiscoveryMetricsStoreAdapternodeIds - Nodes to remove metrics of.GridSpiException - If any error occurs.@GridSpiConfiguration(optional=false) public void setBucketName(String bucketName)
bucketName - Bucket name.@GridSpiConfiguration(optional=true) public void setClientConfiguration(com.amazonaws.ClientConfiguration cfg)
For details refer to Amazon S3 API reference.
cfg - Amazon client configuration.@GridSpiConfiguration(optional=false) public void setAwsCredentials(com.amazonaws.auth.AWSCredentials cred)
For details refer to Amazon S3 API reference.
cred - AWS credentials.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014