public final class OwnerServerTriad
extends java.lang.Object
Constructor and Description |
---|
OwnerServerTriad(ClusterServer primary,
ClusterServer secondary,
ClusterServer tertiary)
Creates the server triad for a ClusterTriad.Owner
|
Modifier and Type | Method and Description |
---|---|
ClusterServer |
getActiveOrSelfServer(ClusterServer oldServer)
Returns the best primary or secondary triad server.
|
ClusterServer |
getActiveServer(ClusterServer oldServer)
Returns the best primary or secondary triad server.
|
ClusterServer |
getPrimary()
Returns the primary for this ownership triad.
|
ClusterServer |
getPrimaryIfActiveRemote()
Returns the primary if it is active, i.e.
|
ClusterServer |
getPrimaryIfRemote()
Returns the primary if it is remote, i.e.
|
ClusterServer |
getSecondary()
Returns the secondary for this ownership triad.
|
ClusterServer |
getSecondaryIfActiveRemote()
Returns the secondary if it is remote, i.e.
|
ClusterServer |
getSecondaryIfRemote()
Returns the secondary if it is remote, i.e.
|
ClusterServer |
getTertiary()
Returns the tertiary for this ownership triad.
|
ClusterServer |
getTertiaryIfActiveRemote()
Returns the tertiary if it is remote, i.e.
|
ClusterServer |
getTertiaryIfRemote()
Returns the tertiary if it is remote, i.e.
|
java.lang.String |
toString() |
public OwnerServerTriad(ClusterServer primary, ClusterServer secondary, ClusterServer tertiary)
public final ClusterServer getPrimary()
public final ClusterServer getSecondary()
public final ClusterServer getTertiary()
public final ClusterServer getPrimaryIfRemote()
public final ClusterServer getSecondaryIfRemote()
public final ClusterServer getTertiaryIfRemote()
public final ClusterServer getPrimaryIfActiveRemote()
public final ClusterServer getSecondaryIfActiveRemote()
public final ClusterServer getTertiaryIfActiveRemote()
public ClusterServer getActiveServer(ClusterServer oldServer)
public ClusterServer getActiveOrSelfServer(ClusterServer oldServer)
public java.lang.String toString()
toString
in class java.lang.Object