public class DefaultClusterConfig extends Object implements ClusterConfig
CLUSTER_ADDRESS, CLUSTER_SCOPE| Constructor and Description |
|---|
DefaultClusterConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Returns the cluster address.
|
ClusterScope |
getScope()
Returns the network scope.
|
ClusterConfig |
setAddress(String address)
Sets the cluster address.
|
ClusterConfig |
setScope(ClusterScope scope)
Sets the network scope.
|
public ClusterConfig setAddress(String address)
ClusterConfig
The cluster address is used by Vertigo to deploy components and work
with cluster-wide data structures when the network is clustered. If
the network is deployed in LOCAL scope then the cluster
address does not need to be set up.
setAddress in interface ClusterConfigaddress - The cluster address.public String getAddress()
ClusterConfiggetAddress in interface ClusterConfigpublic ClusterConfig setScope(ClusterScope scope)
ClusterConfig
Setting the network's scope to CLUSTER will result in the
network's components being deployed across the cluster when Vert.x is
a clustered instance. If the cluster scope is being used you must provide
an event bus address to the cluster manager. This is the default scope.
If the scope is set to LOCAL then the network will always
be deployed in the local Vert.x instance regardless of the Vert.x cluster
state.
setScope in interface ClusterConfigscope - The network scope.public ClusterScope getScope()
ClusterConfiggetScope in interface ClusterConfigCLUSTERCopyright © 2013-2014. All Rights Reserved.