public final class ClusterInfo extends Object implements IClusterInfo
Constructor and Description |
---|
ClusterInfo()
Constructor of a new cluster description
|
ClusterInfo(UUID clusterId)
Constructor of an existing cluster description
|
Modifier and Type | Method and Description |
---|---|
UUID |
getClusterId()
Gets a cluster ID
|
int |
getClusterRecyclingErrorsCountThreshold()
Gets allowed deviation for the number of server errors per query per minute
based on the average value for all processes.
|
int |
getExpirationTimeout()
Gets an expiration timeout
|
String |
getHostName()
Gets the name or IP address of the computer where the
cluster register and the master cluster manager process are located
|
int |
getLifeTimeLimit()
Gets the lifetime limit of cluster working processes
|
int |
getLoadBalancingMode()
Gets load balancing mode.
|
int |
getMainPort()
Gets the main IP port number of the cluster manager
|
int |
getMaxMemorySize()
Gets the limit (in KB) of virtual address space per working process
|
int |
getMaxMemoryTimeLimit()
Gets the maximum allowed period (in seconds) of exceeding the
memory size limit
|
String |
getName()
Gets a cluster name
|
int |
getSecurityLevel()
Gets connection security level
|
int |
getSessionFaultToleranceLevel()
Gets session fault tolerance level
|
boolean |
isClusterRecyclingKillProblemProcesses()
Returns whether processes with errors should be force terminated.
|
void |
setClusterRecyclingErrorsCountThreshold(int errorsCountThreshold)
Sets allowed deviation for the number of server errors per query per minute
based on the average value for all processes.
|
void |
setClusterRecyclingKillProblemProcesses(boolean killProblemProcesses)
Enforces termination of processes with errors.
|
void |
setExpirationTimeout(int timeout)
Sets an expiration timeout
|
void |
setHostName(String hostName)
Sets the name or IP address of the computer where the
cluster register and the master cluster manager process are located
|
void |
setLifeTimeLimit(int limit)
Sets the lifetime limit of cluster working processes
|
void |
setLoadBalancingMode(int mode)
Sets load balancing mode.
|
void |
setMainPort(int port)
Sets the main IP port number of the cluster manager
|
void |
setMaxMemorySize(int size)
Sets the limit (in KB) of virtual address space per working process
|
void |
setMaxMemoryTimeLimit(int limit)
Sets the maximum allowed period (in seconds) of exceeding the memory
size limit
|
void |
setName(String name)
Sets a cluster name
|
void |
setSecurityLevel(int level)
Sets connection security level
|
void |
setSessionFaultToleranceLevel(int level)
Sets session fault tolerance level
|
String |
toString() |
public ClusterInfo()
public ClusterInfo(UUID clusterId)
clusterId
- cluster IDpublic UUID getClusterId()
IClusterInfo
getClusterId
in interface IClusterInfo
public int getExpirationTimeout()
IClusterInfo
getExpirationTimeout
in interface IClusterInfo
public void setExpirationTimeout(int timeout)
IClusterInfo
setExpirationTimeout
in interface IClusterInfo
timeout
- expiration timeoutpublic String getHostName()
IClusterInfo
getHostName
in interface IClusterInfo
public void setHostName(String hostName)
IClusterInfo
setHostName
in interface IClusterInfo
hostName
- computer name or IP addresspublic int getLifeTimeLimit()
IClusterInfo
getLifeTimeLimit
in interface IClusterInfo
public void setLifeTimeLimit(int limit)
IClusterInfo
setLifeTimeLimit
in interface IClusterInfo
limit
- lifetime limit of cluster working processespublic int getMainPort()
IClusterInfo
getMainPort
in interface IClusterInfo
public void setMainPort(int port)
IClusterInfo
setMainPort
in interface IClusterInfo
port
- main IP port number of the cluster managerpublic int getMaxMemorySize()
IClusterInfo
getMaxMemorySize
in interface IClusterInfo
public void setMaxMemorySize(int size)
IClusterInfo
setMaxMemorySize
in interface IClusterInfo
size
- virtual address space limitpublic int getMaxMemoryTimeLimit()
IClusterInfo
getMaxMemoryTimeLimit
in interface IClusterInfo
public void setMaxMemoryTimeLimit(int limit)
IClusterInfo
setMaxMemoryTimeLimit
in interface IClusterInfo
limit
- maximum allowed period of exceeding the memory size limitpublic String getName()
IClusterInfo
getName
in interface IClusterInfo
public void setName(String name)
IClusterInfo
setName
in interface IClusterInfo
name
- cluster namepublic int getSecurityLevel()
IClusterInfo
getSecurityLevel
in interface IClusterInfo
public void setSecurityLevel(int level)
IClusterInfo
setSecurityLevel
in interface IClusterInfo
level
- connection security levelpublic int getSessionFaultToleranceLevel()
IClusterInfo
getSessionFaultToleranceLevel
in interface IClusterInfo
public void setSessionFaultToleranceLevel(int level)
IClusterInfo
setSessionFaultToleranceLevel
in interface IClusterInfo
level
- session fault tolerance levelpublic int getLoadBalancingMode()
IClusterInfo
0
- priorities are determined by available performance1
- priorities are determined by available memory0
getLoadBalancingMode
in interface IClusterInfo
public void setLoadBalancingMode(int mode)
IClusterInfo
IClusterInfo.getLoadBalancingMode()
setLoadBalancingMode
in interface IClusterInfo
mode
- load balancing modepublic int getClusterRecyclingErrorsCountThreshold()
IClusterInfo
getClusterRecyclingErrorsCountThreshold
in interface IClusterInfo
public void setClusterRecyclingErrorsCountThreshold(int errorsCountThreshold)
IClusterInfo
Is set up as a percentage of the average value of the rest processes. For example if the parameter value is set up at "50", and the average amount of errors per one query per minute during the last 5 minutes is "100", then a threshold is considered as exceeded for the processes which called more than 150 errors per query per minute.
setClusterRecyclingErrorsCountThreshold
in interface IClusterInfo
errorsCountThreshold
- allowed amount of server error per one query per minute.public boolean isClusterRecyclingKillProblemProcesses()
IClusterInfo
isClusterRecyclingKillProblemProcesses
in interface IClusterInfo
public void setClusterRecyclingKillProblemProcesses(boolean killProblemProcesses)
IClusterInfo
true
, the processes which are recognized to be default according
to the monitoring results will be force terminated.
Possible reasons on which a processes can be recognized to be default:
IClusterInfo.getClusterRecyclingErrorsCountThreshold()
,setClusterRecyclingKillProblemProcesses
in interface IClusterInfo
killProblemProcesses
- whether processes with errors should be force terminated.Copyright © '1C' 1996-2012