|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.connection.Cluster
public abstract class Cluster
A base class representing a cluster of IOM servers.
Field Summary | |
---|---|
static int |
TYPE_FAILOVER
Flag for failover clusters. |
static int |
TYPE_LOAD_BALANCING
Flag for load-balancing clusters. |
Constructor Summary | |
---|---|
protected |
Cluster(Server[] serverArray)
Construct a cluster of IOM servers. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
protected abstract int |
computeMaxClients()
|
boolean |
equals(java.lang.Object that)
|
java.lang.String |
getClassID()
Get the class ID of the servers in this cluster. |
abstract int |
getClusterType()
Get the cluster type. |
java.lang.String |
getDomain()
Get the domain of the servers in this cluster. |
static Cluster |
getInstance(Server[] servers,
int clusterType)
Construct and return a cluster of IOM servers. |
int |
getMaxClients()
Get the maximum number of clients this cluster can support at one time. |
Server[] |
getServerArray()
Get the array of servers that have been added to the cluster. |
int |
hashCode()
|
void |
setServerArray(Server[] serverArray)
Set the array of servers in the cluster. |
java.lang.String |
toString()
|
Field Detail |
---|
public static final int TYPE_LOAD_BALANCING
public static final int TYPE_FAILOVER
Constructor Detail |
---|
protected Cluster(Server[] serverArray)
serverArray
- the servers to add to the cluster.Method Detail |
---|
public static Cluster getInstance(Server[] servers, int clusterType)
servers
- the servers to add to the cluster.clusterType
- the cluster typeTYPE_FAILOVER
,
TYPE_LOAD_BALANCING
public void setServerArray(Server[] serverArray)
serverArray
- the array of servers to add to the clusterpublic Server[] getServerArray()
public abstract int getClusterType()
TYPE_FAILOVER
,
TYPE_LOAD_BALANCING
public java.lang.String getClassID()
public java.lang.String getDomain()
public int getMaxClients()
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract int computeMaxClients()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |