Connection.Ifacepublic class ConnectionHandler extends Object implements Connection.Iface
| Constructor | Description |
|---|---|
ConnectionHandler(String authFile,
String dbPath,
String[] replicaSet,
int nodeNum) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
addCursor(long connectionID,
DBCursor cursor,
String command) |
|
void |
closeConnection(long connection) |
|
void |
closeCursor(long connection,
long cursor) |
|
long |
command(long connection,
String database,
String collection,
String command,
boolean remoteView) |
|
long |
connect(String username,
String password) |
|
ByteBuffer |
cursorNext(long connection,
long cursor,
int count) |
|
String |
getDbPath() |
|
int |
getNodeNum() |
|
void |
installLib(File file) |
|
void |
loadLibs() |
|
void |
setDbPath(String dbPath) |
|
void |
setServer(org.apache.thrift.server.TThreadPoolServer server2) |
public long command(long connection,
String database,
String collection,
String command,
boolean remoteView)
throws org.apache.thrift.TException
command in interface Connection.Ifaceorg.apache.thrift.TExceptionpublic long connect(String username, String password) throws org.apache.thrift.TException
connect in interface Connection.Ifaceorg.apache.thrift.TExceptionpublic ByteBuffer cursorNext(long connection, long cursor, int count) throws org.apache.thrift.TException
cursorNext in interface Connection.Ifaceorg.apache.thrift.TExceptionpublic void closeCursor(long connection,
long cursor)
throws org.apache.thrift.TException
closeCursor in interface Connection.Ifaceorg.apache.thrift.TExceptionpublic void closeConnection(long connection)
throws org.apache.thrift.TException
closeConnection in interface Connection.Ifaceorg.apache.thrift.TExceptionpublic void setServer(org.apache.thrift.server.TThreadPoolServer server2)
public String getDbPath()
public void setDbPath(String dbPath)
public int getNodeNum()
public void installLib(File file)
file - public void loadLibs()
Copyright © 2020. All rights reserved.