public class ClusterRepoItem extends RepositoryItemAbstract
Modifier and Type | Field and Description |
---|---|
static String |
CPU_USAGE_ATTR
Field description
|
static String |
CPU_USAGE_LABEL
Field description
|
static String |
HOSTNAME_ATTR
Field description
|
static String |
HOSTNAME_LABEL
Field description
|
static String |
LAST_UPDATE_ATTR
Field description
|
static String |
LAST_UPDATE_LABEL
Field description
|
static String |
MEM_USAGE_ATTR
Field description
|
static String |
MEM_USAGE_LABEL
Field description
|
static String |
PASSWORD_ATTR
Field description
|
static String |
PASSWORD_LABEL
Field description
|
static String |
PASSWORD_PROP_VAL
Field description
|
static String |
PORT_NO_ATTR
Field description
|
static String |
PORT_NO_LABEL
Field description
|
static int |
PORT_NO_PROP_VAL
Field description
|
static String |
REPO_ITEM_ELEM_NAME
Field description
|
ADMINS_ATT, ADMINS_LABEL, OWNER_ATT, OWNER_LABEL
Constructor and Description |
---|
ClusterRepoItem() |
Modifier and Type | Method and Description |
---|---|
void |
addCommandFields(Packet packet)
Method description
|
float |
getCpuUsage()
Method description
|
String |
getElemName()
Method description
|
String |
getHostname()
Method description
|
String |
getKey()
Method description
|
long |
getLastUpdate()
Method description
|
float |
getMemUsage()
Method description
|
String |
getPassword()
Method description
|
int |
getPortNo()
Method description
|
void |
initFromCommand(Packet packet)
Method description
|
void |
initFromElement(tigase.xml.Element elem)
Method description
|
void |
initFromPropertyString(String propString)
Method description
|
protected void |
setCpuUsage(float cpuUsage)
Method description
|
protected void |
setHostname(String hostname)
Method description
|
protected void |
setLastUpdate(long update)
Method description
|
protected void |
setMemUsage(float memUsage)
Method description
|
protected void |
setPassword(String password)
Method description
|
protected void |
setPort(int port)
Method description
|
tigase.xml.Element |
toElement()
Method description
|
String |
toPropertyString()
Method description
|
String |
toString()
Method description
|
public static final String CPU_USAGE_ATTR
public static final String CPU_USAGE_LABEL
public static final String HOSTNAME_ATTR
public static final String HOSTNAME_LABEL
public static final String LAST_UPDATE_ATTR
public static final String LAST_UPDATE_LABEL
public static final String MEM_USAGE_ATTR
public static final String MEM_USAGE_LABEL
public static final String PASSWORD_ATTR
public static final String PASSWORD_LABEL
public static final String PASSWORD_PROP_VAL
public static final String PORT_NO_ATTR
public static final String PORT_NO_LABEL
public static final int PORT_NO_PROP_VAL
public static final String REPO_ITEM_ELEM_NAME
public void addCommandFields(Packet packet)
addCommandFields
in interface RepositoryItem
addCommandFields
in class RepositoryItemAbstract
packet
- public void initFromCommand(Packet packet)
initFromCommand
in interface RepositoryItem
initFromCommand
in class RepositoryItemAbstract
packet
- public void initFromElement(tigase.xml.Element elem)
initFromElement
in interface RepositoryItem
initFromElement
in class RepositoryItemAbstract
elem
- public void initFromPropertyString(String propString)
propString
- public tigase.xml.Element toElement()
toElement
in interface RepositoryItem
toElement
in class RepositoryItemAbstract
public String toPropertyString()
public float getCpuUsage()
public String getElemName()
getElemName
in class RepositoryItemAbstract
public String getHostname()
public String getKey()
public long getLastUpdate()
public float getMemUsage()
public String getPassword()
public int getPortNo()
protected void setCpuUsage(float cpuUsage)
cpuUsage
- protected void setHostname(String hostname)
hostname
- protected void setLastUpdate(long update)
update
- protected void setMemUsage(float memUsage)
memUsage
- protected void setPassword(String password)
password
- protected void setPort(int port)
port
- Copyright © 2014 "Tigase, Inc.". All rights reserved.