com.splout.db.common
Class SploutClient

java.lang.Object
  extended by com.splout.db.common.SploutClient

public class SploutClient
extends Object

Java HTTP Interface to Splout that uses Google Http Client (https://code.google.com/p/google-http-java-client/). We chose this client over Jersey or HttpClient to avoid conflicts with Hadoop dependencies.


Constructor Summary
SploutClient(int timeoutMillis, String... qnodes)
           
SploutClient(String... qnodes)
           
 
Method Summary
static String asString(InputStream inputStream)
           
 DeployInfo deploy(DeployRequest... requests)
           
 DeployInfo deploy(String tablespace, PartitionMap partitionMap, ReplicationMap replicationMap, URI dataUri)
           
 List<String> dNodeList()
           
 QNodeStatus overview()
           
 QueryStatus query(String tablespace, String key, String query, String partition)
           
 Tablespace tablespace(String tablespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SploutClient

public SploutClient(String... qnodes)

SploutClient

public SploutClient(int timeoutMillis,
                    String... qnodes)
Method Detail

asString

public static String asString(InputStream inputStream)
                       throws IOException
Throws:
IOException

tablespace

public Tablespace tablespace(String tablespace)
                      throws IOException
Throws:
IOException

overview

public QNodeStatus overview()
                     throws IOException
Throws:
IOException

dNodeList

public List<String> dNodeList()
                       throws IOException
Throws:
IOException

query

public QueryStatus query(String tablespace,
                         String key,
                         String query,
                         String partition)
                  throws IOException
Throws:
IOException

deploy

public DeployInfo deploy(String tablespace,
                         PartitionMap partitionMap,
                         ReplicationMap replicationMap,
                         URI dataUri)
                  throws IOException
Throws:
IOException

deploy

public DeployInfo deploy(DeployRequest... requests)
                  throws IOException
Throws:
IOException


Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.