mirror of https://github.com/apache/activemq.git
Adding a container property to the zk node data used by the leveldb replication.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1504626 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf9cccacf8
commit
ae5abf143b
|
@ -75,6 +75,9 @@ class ElectingLevelDBStore extends ProxyLevelDBStore {
|
|||
|
||||
var brokerName: String = _
|
||||
|
||||
@BeanProperty
|
||||
var container: String = _
|
||||
|
||||
@BeanProperty
|
||||
var hostname: String = _
|
||||
@BeanProperty
|
||||
|
|
|
@ -10,6 +10,9 @@ class LevelDBNodeState extends NodeState {
|
|||
@JsonProperty
|
||||
var id: String = _
|
||||
|
||||
@JsonProperty
|
||||
var container: String = _
|
||||
|
||||
@JsonProperty
|
||||
var address: String = _
|
||||
|
||||
|
@ -23,6 +26,7 @@ class LevelDBNodeState extends NodeState {
|
|||
obj match {
|
||||
case x:LevelDBNodeState =>
|
||||
x.id == id &&
|
||||
x.container == container &&
|
||||
x.address == address &&
|
||||
x.position == position &&
|
||||
x.elected == elected
|
||||
|
@ -73,6 +77,8 @@ class MasterElector(store: ElectingLevelDBStore) extends ClusteredSingleton[Leve
|
|||
rc.elected = elected
|
||||
rc.position = position
|
||||
rc.address = address
|
||||
rc.container = store.container
|
||||
rc.address = address
|
||||
rc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue