public class MongodbStat extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MongodbStat.Stat
统计
|
static class |
MongodbStat.TimeAndCount |
static class |
MongodbStat.Top
资源
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Charset |
m_Charset
编码集
|
protected String |
m_Home
mongo目录
|
protected String |
m_Host
mongo主机
|
protected String |
m_Password
密码
|
protected int |
m_Port
mongo端口
|
protected String |
m_Username
用户名
|
| 构造器和说明 |
|---|
MongodbStat(String home,
String host,
int port) |
MongodbStat(String home,
String host,
int port,
String username,
String password) |
protected String m_Home
protected String m_Host
protected int m_Port
protected String m_Username
protected String m_Password
protected Charset m_Charset
public String getHost()
public int getPort()
public MongodbStat.Stat stat() throws IOException
IOException - IO异常public List<MongodbStat.Top> top() throws IOException
IOException - IO异常public static void main(String[] args)
Copyright © 2022. All rights reserved.