📄 monitorinfo.java
字号:
package cn.edu.hust.cgcl.biogrid.monitor;
/**
* <p>Title: </p>
* <p>Description: MonitorInfo类包括了monitor节点的统计信息</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class MonitorInfo
{
public String monitorId;
public int dispatcherGroupCount;
public int jobCount;
public int workerLoad;
public int dispatcherLoad;
public int workerCount;
public int dispatcherCount;
public boolean canAcceptJob;
public MonitorInfo()
{
} // MonitorInfo
public MonitorInfo(String monitorid,
int jobcount,
int workerload,
int dispatcherload,
int dispatchergroupcount,
int dispatchercount,
int workercount,
boolean canaccept)
{
setInfo(monitorid,
jobcount,
workerload,
dispatcherload,
dispatchergroupcount,
dispatchercount,
workercount,
canaccept);
} // MonitorInfo
public void setInfo(String monitorid,
int jobcount,
int workerload,
int dispatcherload,
int dispatchergroupcount,
int dispatchercount,
int workercount,
boolean canaccept)
{
this.monitorId = monitorid;
this.jobCount = jobcount;
this.workerLoad = workerload;
this.dispatcherLoad = dispatcherload;
this.dispatcherGroupCount = dispatchergroupcount;
this.dispatcherCount = dispatchercount;
this.workerCount = workercount;
this.canAcceptJob=canaccept;
} // setInfo
public String getMonitorId()
{
return this.monitorId;
}
public int getDispatcherGroupCount()
{
return this.dispatcherGroupCount;
} // getDispatcherGroupCount
public int getJobCount()
{
return this.jobCount;
} // getJobCount
public int getWorkerLoad()
{
return this.workerLoad;
} // getWorkerLoad
public int getDispatcherLoad()
{
return this.dispatcherLoad;
} // getDispatcherLoad
public int getWorkerCount()
{
return this.workerCount;
} // getWorkerCount
public boolean getCanAcceptJob()
{
return this.canAcceptJob;
} // getCanAcceptJob
} // MonitorInfo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -