public class Machine extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
heartbeat_time |
protected String |
ip |
protected String |
machine_unique_id |
protected String |
user_defined_id |
| 构造器和说明 |
|---|
Machine() |
Machine(Machine machine)
construct a machine
|
Machine(String ip,
String machine_unique_id,
String user_defined_id,
long heartbeat_time)
Construct a machine
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FromJsonObject(net.sf.json.JSONObject dict)
Construct a machine from a json object
|
void |
FromJsonString(String machineString)
Construct a machine from a json string
|
String |
GetIp() |
long |
GetLastHeartBeatTime() |
String |
GetMachineUniqueId() |
String |
GetUserDefinedId() |
net.sf.json.JSONObject |
ToJsonObject()
Return the Jonsobject of the machine
|
String |
ToJsonString()
Return the json string of the machine
|
protected String ip
protected String machine_unique_id
protected String user_defined_id
protected long heartbeat_time
public Machine()
public Machine(String ip, String machine_unique_id, String user_defined_id, long heartbeat_time)
ip - machine ipmachine_unique_id - machine unique iduser_defined_id - machine user defined idheartbeat_time - machine last update timepublic Machine(Machine machine)
machine - exist machinepublic net.sf.json.JSONObject ToJsonObject()
public String ToJsonString()
public void FromJsonObject(net.sf.json.JSONObject dict)
throws LogException
dict - the json object configLogException - if any error happenpublic void FromJsonString(String machineString) throws LogException
machineString - the json stringLogException - if any error happenpublic String GetIp()
public String GetMachineUniqueId()
public String GetUserDefinedId()
public long GetLastHeartBeatTime()
Copyright © 2016. All Rights Reserved.