public class Machine
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
Machine() |
Machine(Machine machine)
construct a machine
|
Machine(java.lang.String ip,
java.lang.String machine_unique_id,
java.lang.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(java.lang.String machineString)
Construct a machine from a json string
|
java.lang.String |
GetIp() |
long |
GetLastHeartBeatTime() |
java.lang.String |
GetMachineUniqueId() |
java.lang.String |
GetUserDefinedId() |
net.sf.json.JSONObject |
ToJsonObject()
Return the Jonsobject of the machine
|
java.lang.String |
ToJsonString()
Return the json string of the machine
|
public Machine()
public Machine(java.lang.String ip, java.lang.String machine_unique_id, java.lang.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 java.lang.String ToJsonString()
public void FromJsonObject(net.sf.json.JSONObject dict) throws LogException
dict
- the json object configLogException
- if any error happenpublic void FromJsonString(java.lang.String machineString) throws LogException
machineString
- the json stringLogException
- if any error happenpublic java.lang.String GetIp()
public java.lang.String GetMachineUniqueId()
public java.lang.String GetUserDefinedId()
public long GetLastHeartBeatTime()