public class S3_PING extends FILE_PING
FILE_PING.WriterTaskDiscovery.Responses| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
access_key |
protected org.jgroups.protocols.S3_PING.AWSAuthConnection |
conn |
protected java.lang.String |
pre_signed_delete_url |
protected java.lang.String |
pre_signed_put_url |
protected java.lang.String |
prefix |
protected java.lang.String |
secret_access_key |
filter, interval, location, root_dir, SUFFIXgroup_addr, local_addr, members, ping_responses, rank, timer, view| Constructor and Description |
|---|
S3_PING() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createRootDir() |
static java.lang.String |
generatePreSignedUrl(java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey,
java.lang.String method,
java.lang.String bucket,
java.lang.String key,
long expirationDate)
Use this helper method to generate pre-signed S3 urls for use with S3_PING.
|
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
protected java.util.List<PingData> |
readAll(java.lang.String clustername)
Reads all information from the given directory under clustername
|
protected void |
remove(java.lang.String clustername,
Address addr) |
protected boolean |
usingPreSignedUrls() |
protected void |
validateProperties() |
protected void |
writeToFile(PingData data,
java.lang.String clustername) |
addressAsString, down, handleView, readFile, sendGetMembersRequest, start, stopdiscoveryRequestReceived, findAllMembers, findAllViews, findAllViewsAsString, findInitialMembers, findInitialMembers, findInitialMembersAsString, getNumberOfDiscoveryRequestsSent, getNumInitialMembers, getNumPingRequests, getTimeout, getView, handleConnect, handleDisconnect, makeView, providedUpServices, resetStats, setNumInitialMembers, setNumPingRequests, setTimeout, updestroy, downThreadEnabled, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getId, getLevel, getName, getProperties, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, isErgonomics, printStats, providedDownServices, requiredDownServices, requiredUpServices, setDownProtocol, setErgonomics, setId, setLevel, setProperties, setPropertiesInternal, setProperty, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, statsEnabled, upThreadEnabledprotected java.lang.String access_key
protected java.lang.String secret_access_key
protected java.lang.String prefix
protected java.lang.String pre_signed_put_url
protected java.lang.String pre_signed_delete_url
protected org.jgroups.protocols.S3_PING.AWSAuthConnection conn
public void init()
throws java.lang.Exception
Protocolprotected void createRootDir()
createRootDir in class FILE_PINGprotected java.util.List<PingData> readAll(java.lang.String clustername)
FILE_PINGprotected void writeToFile(PingData data, java.lang.String clustername)
writeToFile in class FILE_PINGprotected void remove(java.lang.String clustername,
Address addr)
protected void validateProperties()
protected boolean usingPreSignedUrls()
public static java.lang.String generatePreSignedUrl(java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey,
java.lang.String method,
java.lang.String bucket,
java.lang.String key,
long expirationDate)
awsAccessKey - Your AWS Access KeyawsSecretAccessKey - Your AWS Secret Access Keymethod - The HTTP method - use "put" or "delete" for use with S3_PINGbucket - The S3 bucket you want to write tokey - The key within the bucket to write toexpirationDate - The date this pre-signed url should expire, in seconds since epochCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.