public class MachineGroup extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
createTime |
protected GroupAttribute |
groupAttribute |
protected String |
groupName |
protected String |
groupType |
protected int |
lastModifyTime |
protected String |
machineIdentifyType |
protected ArrayList<String> |
machineList |
| 构造器和说明 |
|---|
MachineGroup() |
MachineGroup(MachineGroup machineGroup)
construct a machine group
|
MachineGroup(String groupName,
String machineIdentifyType,
ArrayList<String> machineList)
Create machine group
|
protected String groupName
protected String groupType
protected String machineIdentifyType
protected GroupAttribute groupAttribute
protected int createTime
protected int lastModifyTime
public MachineGroup()
public MachineGroup(String groupName, String machineIdentifyType, ArrayList<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 String GetGroupName()
public void SetGroupName(String groupName)
groupName - the machine group namepublic String GetGroupType()
public void SetGroupType(String groupType)
groupType - group typepublic GroupAttribute GetGroupAttribute()
public void SetGroupAttribute(GroupAttribute groupAttribute)
groupAttribute - machine group attributepublic String GetMachineIdentifyType()
public void SetMachineIdentifyType(String machineIdentifyType)
public void SetMachineList(net.sf.json.JSONArray machineListJSONArray)
throws LogException
LogExceptionpublic int GetCreateTime()
public void SetCreateTime(int createTime)
public int GetLastModifyTime()
public void SetLastModifyTime(int lastModifyTime)
public String GetExternalName()
public void SetExternalName(String externalName)
public String GetGroupTopic()
public void SetGroupTopic(String groupTopic)
public String ToRequestString()
public net.sf.json.JSONObject ToJsonObject()
public String ToJsonString()
public void FromJsonObject(net.sf.json.JSONObject dict)
throws LogException
LogExceptionpublic void FromJsonString(String machineGroupString) throws LogException
LogExceptionCopyright © 2016. All Rights Reserved.