org.rhq.core.domain.cloud
Class Server
java.lang.Object
org.rhq.core.domain.cloud.Server
- All Implemented Interfaces:
- Serializable
public class Server
- extends Object
- implements Serializable
An RHQ server node in the cluster
- See Also:
- Serialized Form
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
QUERY_FIND_ALL
public static final String QUERY_FIND_ALL
- See Also:
- Constant Field Values
QUERY_FIND_ALL_COMPOSITES
public static final String QUERY_FIND_ALL_COMPOSITES
- See Also:
- Constant Field Values
QUERY_FIND_BY_NAME
public static final String QUERY_FIND_BY_NAME
- See Also:
- Constant Field Values
QUERY_FIND_ALL_CLOUD_MEMBERS
public static final String QUERY_FIND_ALL_CLOUD_MEMBERS
- See Also:
- Constant Field Values
QUERY_FIND_BY_AFFINITY_GROUP
public static final String QUERY_FIND_BY_AFFINITY_GROUP
- See Also:
- Constant Field Values
QUERY_FIND_WITHOUT_AFFINITY_GROUP
public static final String QUERY_FIND_WITHOUT_AFFINITY_GROUP
- See Also:
- Constant Field Values
QUERY_DELETE_BY_ID
public static final String QUERY_DELETE_BY_ID
- See Also:
- Constant Field Values
QUERY_UPDATE_SET_STALE_DOWN
public static final String QUERY_UPDATE_SET_STALE_DOWN
- See Also:
- Constant Field Values
QUERY_FIND_ALL_NORMAL_CLOUD_MEMBERS
public static final String QUERY_FIND_ALL_NORMAL_CLOUD_MEMBERS
- See Also:
- Constant Field Values
QUERY_UPDATE_STATUS_BY_NAME
public static final String QUERY_UPDATE_STATUS_BY_NAME
- See Also:
- Constant Field Values
Server
public Server()
Server
public Server(int serverId)
getId
public int getId()
setId
public void setId(int id)
getName
public String getName()
setName
public void setName(String name)
getAddress
public String getAddress()
setAddress
public void setAddress(String address)
getPort
public int getPort()
setPort
public void setPort(int port)
getSecurePort
public int getSecurePort()
setSecurePort
public void setSecurePort(int securePort)
getComputePower
public int getComputePower()
setComputePower
public void setComputePower(int computePower)
getCtime
public long getCtime()
getMtime
public long getMtime()
setMtime
public void setMtime(long mtime)
getAffinityGroup
public AffinityGroup getAffinityGroup()
setAffinityGroup
public void setAffinityGroup(AffinityGroup affinityGroup)
getOperationMode
public Server.OperationMode getOperationMode()
setOperationMode
public void setOperationMode(Server.OperationMode operationMode)
getAgents
public List<Agent> getAgents()
setAgents
public void setAgents(List<Agent> agents)
getAgentCount
public int getAgentCount()
getServerEntry
public FailoverListComposite.ServerEntry getServerEntry()
getStatus
public int getStatus()
- Returns 0 if this server is current. Otherwise, returns a mask of
Server.Status
elements corresponding to the updates that have occurred that are related to this server.
- Returns:
- 0 if this server is current. Otherwise, returns a mask of
Server.Status
elements corresponding to the updates that have occurred that are related to this server.
clearStatus
public void clearStatus()
- If this status was non-zero, some scheduled job would have had to come along to perform
some work on behalf of this server. After that work is complete, the status can be reset
(set to 0) signifying that no further work needs to be done on this server (as long as the
status remains 0).
addStatus
public void addStatus(Server.Status newStatus)
- If some subsystem makes a change to some data that this server cares about (as summarized
by the various
Server.Status
elements), then that change should be added via this method.
Periodically, a background job will come along, check the status, and possibly perform
work on behalf of this server based on the type of change.
getStatusMessages
public List<String> getStatusMessages()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.