6.6.8.1.1.2. QuasardbConfig

public class QuasardbConfig

A convenient API configuration object. You can provide the following elements to the API :

  • Nodes : nodes are a collection of QuasardbNode. Each node is a part of the quasardb cluster to contact.
  • Expiry time : default value for expiry time for all incoming data.
Author:© quasardb - 2014

6.6.8.1.1.2.1. Methods

6.6.8.1.1.2.1.1. addNode

public void addNode(QuasardbNode node)

Add a new QuasardbNode to the cluster configuration

Parameters:
  • node – node to add

6.6.8.1.1.2.1.2. getExpiryTimeInSeconds

public long getExpiryTimeInSeconds()

Get default expiry time for all entries. Result is given in seconds.

Returns:expiry time in seconds.

6.6.8.1.1.2.1.3. getNodes

public Collection<QuasardbNode> getNodes()

Get all nodes of the cluster

Returns:list of all configured QuasardbNode

6.6.8.1.1.2.1.4. removeNode

public boolean removeNode(QuasardbNode node)

Remove a QuasardbNode from the cluster configuration.

Parameters:
  • node – node to remove from the cluster ring.
Returns:

true if the provided node has been removed

6.6.8.1.1.2.1.5. setExpiryTimeInSeconds

public void setExpiryTimeInSeconds(long expiryTimeInSeconds)

Set default expiry time for all new incoming entries of the cluster. Be careful : unit for this parameter is second.

Parameters:
  • expiryTimeInSeconds – expiry time in seconds for all new data.