public class MachineGroup
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
MachineGroup() |
MachineGroup(MachineGroup machineGroup)
construct a machine group
|
MachineGroup(java.lang.String groupName,
java.lang.String machineIdentifyType,
java.util.ArrayList<java.lang.String> machineList)
Create machine group
|
限定符和类型 | 方法和说明 |
---|---|
void |
FromJsonObject(net.sf.json.JSONObject dict) |
void |
FromJsonString(java.lang.String machineGroupString) |
int |
GetCreateTime() |
java.lang.String |
GetExternalName() |
GroupAttribute |
GetGroupAttribute()
get machine group attribute
|
java.lang.String |
GetGroupName() |
java.lang.String |
GetGroupTopic() |
java.lang.String |
GetGroupType() |
int |
GetLastModifyTime() |
java.lang.String |
GetMachineIdentifyType() |
java.util.ArrayList<java.lang.String> |
GetMachineList() |
void |
SetCreateTime(int createTime) |
void |
SetExternalName(java.lang.String externalName) |
void |
SetGroupAttribute(GroupAttribute groupAttribute)
Set machine group attribute
|
void |
SetGroupName(java.lang.String groupName)
Set machine group name
|
void |
SetGroupTopic(java.lang.String groupTopic) |
void |
SetGroupType(java.lang.String groupType)
Set machine group type
|
void |
SetLastModifyTime(int lastModifyTime) |
void |
SetMachineIdentifyType(java.lang.String machineIdentifyType) |
void |
SetMachineList(java.util.ArrayList<java.lang.String> machineList) |
void |
SetMachineList(net.sf.json.JSONArray machineListJSONArray) |
net.sf.json.JSONObject |
ToJsonObject() |
java.lang.String |
ToJsonString() |
java.lang.String |
ToRequestString() |
public MachineGroup()
public MachineGroup(java.lang.String groupName, java.lang.String machineIdentifyType, java.util.ArrayList<java.lang.String> machineList)
groupName
- machine group namemachineIdentifyType
- the type of machine list, it only support "ip" and "userdefined"machineList
- the machine ip list or userdefined id listpublic MachineGroup(MachineGroup machineGroup) throws LogException
machineGroup
- the exist machine groupLogException
- if any error happendpublic java.lang.String GetGroupName()
public void SetGroupName(java.lang.String groupName)
groupName
- the machine group namepublic java.lang.String GetGroupType()
public void SetGroupType(java.lang.String groupType)
groupType
- group typepublic GroupAttribute GetGroupAttribute()
public void SetGroupAttribute(GroupAttribute groupAttribute)
groupAttribute
- machine group attributepublic java.lang.String GetMachineIdentifyType()
public void SetMachineIdentifyType(java.lang.String machineIdentifyType)
public java.util.ArrayList<java.lang.String> GetMachineList()
public void SetMachineList(java.util.ArrayList<java.lang.String> machineList)
public void SetMachineList(net.sf.json.JSONArray machineListJSONArray) throws LogException
LogException
public int GetCreateTime()
public void SetCreateTime(int createTime)
public int GetLastModifyTime()
public void SetLastModifyTime(int lastModifyTime)
public java.lang.String GetExternalName()
public void SetExternalName(java.lang.String externalName)
public java.lang.String GetGroupTopic()
public void SetGroupTopic(java.lang.String groupTopic)
public java.lang.String ToRequestString()
public net.sf.json.JSONObject ToJsonObject()
public java.lang.String ToJsonString()
public void FromJsonObject(net.sf.json.JSONObject dict) throws LogException
LogException
public void FromJsonString(java.lang.String machineGroupString) throws LogException
LogException