|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scale7.cassandra.pelops.Connection
public class Connection
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.scale7.cassandra.pelops.IConnection |
|---|
IConnection.Config |
| Constructor Summary | |
|---|---|
Connection(Cluster.Node node,
String keyspace)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the connection. |
org.apache.cassandra.thrift.Cassandra.Client |
getAPI()
Get a reference to the Cassandra Thrift API |
Cluster.Node |
getNode()
Get a string identifying the node |
boolean |
isOpen()
Used to determine if the connection is open. |
boolean |
open()
Opens a connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection(Cluster.Node node,
String keyspace)
throws SocketException,
org.apache.thrift.TException,
org.apache.cassandra.thrift.InvalidRequestException
SocketException
org.apache.thrift.TException
org.apache.cassandra.thrift.InvalidRequestException| Method Detail |
|---|
public org.apache.cassandra.thrift.Cassandra.Client getAPI()
getAPI in interface IConnectionpublic Cluster.Node getNode()
getNode in interface IConnectionpublic boolean isOpen()
IConnection
isOpen in interface IConnectionpublic boolean open()
open in interface IConnectionpublic void close()
close in interface IConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||