org.jgroups.protocols
Class RACKSPACE_PING

java.lang.Object
  extended by org.jgroups.stack.Protocol
      extended by org.jgroups.protocols.Discovery
          extended by org.jgroups.protocols.FILE_PING
              extended by org.jgroups.protocols.RACKSPACE_PING

public class RACKSPACE_PING
extends FILE_PING

Discovery protocol based on Rackspace Cloud Files storage solution

Author:
Gustavo Fernandes

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgroups.protocols.FILE_PING
FILE_PING.WriterTask
 
Nested classes/interfaces inherited from class org.jgroups.protocols.Discovery
Discovery.Responses
 
Field Summary
protected  java.lang.String apiKey
           
protected  java.lang.String container
           
protected static Log log
           
protected  org.jgroups.protocols.RACKSPACE_PING.RackspaceClient rackspaceClient
           
protected  java.lang.String region
           
protected  java.lang.String username
           
 
Fields inherited from class org.jgroups.protocols.FILE_PING
filter, interval, location, root_dir, SUFFIX
 
Fields inherited from class org.jgroups.protocols.Discovery
break_on_coord_rsp, current_coord, force_sending_discovery_rsps, group_addr, is_coord, is_leaving, is_server, local_addr, members, num_discovery_requests, num_initial_members, num_initial_srv_members, ping_responses, return_entire_cache, stagger_timeout, timeout, timer, use_disk_cache, view
 
Fields inherited from class org.jgroups.stack.Protocol
down_prot, ergonomics, id, name, stack, stats, up_prot
 
Constructor Summary
RACKSPACE_PING()
           
 
Method Summary
protected  void createRootDir()
           
 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  void writeToFile(PingData data, java.lang.String clustername)
           
 
Methods inherited from class org.jgroups.protocols.FILE_PING
addressAsString, down, fetchClusterMembers, handleView, isDynamic, sendDiscoveryRequestsInParallel, start, stop
 
Methods inherited from class org.jgroups.protocols.Discovery
deserialize, discoveryRequestReceived, findAllViews, findAllViewsAsString, findInitialMembers, findInitialMembersAsString, findMembers, getCurrentCoord, getNumberOfDiscoveryRequestsSent, getNumInitialMembers, getTimeout, getView, getViewId, handleConnect, handleDisconnect, isMergeRunning, providedUpServices, resetStats, sendDiscoveryRequest, sendDiscoveryResponse, sendMcastDiscoveryRequest, serializeWithoutView, setForceSendingDiscoveryRsps, setNumInitialMembers, setTimeout, up
 
Methods inherited from class org.jgroups.stack.Protocol
destroy, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, printStats, providedDownServices, requiredDownServices, requiredUpServices, resetStatistics, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, statsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Log log

rackspaceClient

protected org.jgroups.protocols.RACKSPACE_PING.RackspaceClient rackspaceClient

username

protected java.lang.String username

apiKey

protected java.lang.String apiKey

region

protected java.lang.String region

container

protected java.lang.String container
Constructor Detail

RACKSPACE_PING

public RACKSPACE_PING()
Method Detail

init

public void init()
          throws java.lang.Exception
Description copied from class: Protocol
Called after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent.

Overrides:
init in class FILE_PING
Throws:
java.lang.Exception - Thrown if protocol cannot be initialized successfully. This will cause the ProtocolStack to fail, so the channel constructor will throw an exception

remove

protected void remove(java.lang.String clustername,
                      Address addr)
Overrides:
remove in class FILE_PING

readAll

protected java.util.List<PingData> readAll(java.lang.String clustername)
Description copied from class: FILE_PING
Reads all information from the given directory under clustername

Overrides:
readAll in class FILE_PING
Returns:

writeToFile

protected void writeToFile(PingData data,
                           java.lang.String clustername)
Overrides:
writeToFile in class FILE_PING

createRootDir

protected void createRootDir()
Overrides:
createRootDir in class FILE_PING


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.