org.jgroups.protocols.GOOGLE_PING Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jgroups.protocols;
/**
* Discovery protocol for Google Cloud Storage. Very simple first shot at an impl, based on a simple migration of
* S3_PING, as discussed in [1].
* The location property needs to be the bucket name.
* [1] https://developers.google.com/storage/docs/migrating#migration-simple
* @author Bela Ban
* @since 3.5
*/
public class GOOGLE_PING extends S3_PING {
public void init() throws Exception {
if(host == null)
host="storage.googleapis.com";
super.init();
}
protected AWSAuthConnection createConnection() {
return port > 0? new AWSAuthConnection(access_key, secret_access_key, use_ssl, host, port)
: new AWSAuthConnection(access_key, secret_access_key, use_ssl, host, Utils.INSECURE_PORT);
}
}