|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sdnplatform.sync.internal.config.ClusterConfig
public class ClusterConfig
Represent the configuration of a cluster in the sync manager
Constructor Summary | |
---|---|
ClusterConfig()
|
|
ClusterConfig(java.util.List<Node> nodes,
short thisNodeId)
Initialize a cluster config using a list of nodes |
|
ClusterConfig(java.util.List<Node> nodes,
short thisNodeId,
AuthScheme authScheme,
java.lang.String keyStorePath,
java.lang.String keyStorePassword)
Initialize a cluster config using a list of nodes |
|
ClusterConfig(java.util.List<Node> nodes,
short thisNodeId,
java.lang.String listenAddress,
AuthScheme authScheme,
java.lang.String keyStorePath,
java.lang.String keyStorePassword)
Initialize a cluster config using a list of nodes |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
AuthScheme |
getAuthScheme()
Get the authentication scheme to use for authenticating RPC connections |
java.util.Collection<Node> |
getDomainNodes()
A collection of the nodes in the local domain for the current node |
java.util.Collection<Node> |
getDomainNodes(short domainId)
A collection of the nodes in the local domain specified |
java.lang.String |
getKeyStorePassword()
Get the password for reading data from the KeyStore returned
by getKeyStorePath() |
java.lang.String |
getKeyStorePath()
Get the key store path where credentials can be found |
java.lang.String |
getListenAddress()
Get a string representing the host/address on which the local node should listen |
Node |
getNode()
Get the Node object for the current node |
Node |
getNode(short nodeId)
The a list of the nodes in the local domain specified |
java.util.Collection<Node> |
getNodes()
Get a collection containing all configured nodes |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClusterConfig()
public ClusterConfig(java.util.List<Node> nodes, short thisNodeId) throws SyncException
nodes
- the nodes to usethisNodeId
- the node ID for the current node
SyncException
public ClusterConfig(java.util.List<Node> nodes, short thisNodeId, AuthScheme authScheme, java.lang.String keyStorePath, java.lang.String keyStorePassword) throws SyncException
nodes
- the nodes to usethisNodeId
- the node ID for the current nodeauthScheme
- the AuthScheme
keyStorePath
- the path to a java key store containing
credentials necessary for implementing the AuthScheme
keyStorePassword
- the password for the key store.
SyncException
public ClusterConfig(java.util.List<Node> nodes, short thisNodeId, java.lang.String listenAddress, AuthScheme authScheme, java.lang.String keyStorePath, java.lang.String keyStorePassword) throws SyncException
nodes
- the nodes to usethisNodeId
- the node ID for the current nodelistenAddress
- String representing the address to listen onauthScheme
- the AuthScheme
keyStorePath
- the path to a java key store containing
credentials necessary for implementing the AuthScheme
keyStorePassword
- the password for the key store.
SyncException
Method Detail |
---|
public java.util.Collection<Node> getNodes()
public java.util.Collection<Node> getDomainNodes()
public java.util.Collection<Node> getDomainNodes(short domainId)
domainId
- the domain ID
public Node getNode()
Node
object for the current node
public Node getNode(short nodeId)
nodeId
- the node ID to retrieve
public java.lang.String getListenAddress()
public AuthScheme getAuthScheme()
AuthScheme
objectpublic java.lang.String getKeyStorePath()
KeyStore
containing necessary
credentialsgetKeyStorePassword()
public java.lang.String getKeyStorePassword()
KeyStore
returned
by getKeyStorePath()
getKeyStorePath()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |