| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
cmd_protocol |
(专用程序包) static String[] |
err_msgs |
(专用程序包) int |
errcode |
(专用程序包) String |
errmsg |
protected static int |
Header_Len |
(专用程序包) String |
ip |
protected static org.slf4j.Logger |
log |
protected MSocket |
mysock |
(专用程序包) int |
port |
(专用程序包) int |
timeout |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
addDocRemote_once(byte[] docsBytes,
int begin,
int len) |
protected ByteBuff |
buildCommand(int opt) |
void |
close() |
int |
getErrCode() |
String |
getErrMsg() |
private String |
getErrMsg(int errcode) |
(专用程序包) String |
getIp() |
(专用程序包) int |
getPort() |
boolean |
isActive() |
boolean |
isAlive() |
boolean |
isError() |
void |
open() |
byte[] |
runCommand(int opt) |
byte[] |
runCommand(int opt,
byte[] cmd,
int cmdlen) |
byte[] |
runCommand(int opt,
byte[] cmd,
int cmdlen,
byte[] data,
int datalen) |
String |
toString() |
protected static final org.slf4j.Logger log
protected static final int Header_Len
static final String[] err_msgs
String ip
int port
int timeout
int errcode
String errmsg
protected String cmd_protocol
protected MSocket mysock
public BaseConn(String ip, int port, int timeout)
protected ByteBuff buildCommand(int opt)
public byte[] runCommand(int opt,
byte[] cmd,
int cmdlen,
byte[] data,
int datalen)
throws Exception
Exceptionprivate String getErrMsg(int errcode)
public int addDocRemote_once(byte[] docsBytes,
int begin,
int len)
throws Exception
Exceptionpublic String getErrMsg()
public void close()
public boolean isActive()
public int getErrCode()
public boolean isError()
int getPort()
String getIp()
public boolean isAlive()
Copyright © 2023. All rights reserved.