public class TopologyEvent extends Object
TopologyEventListener
Modifier and Type | Class and Description |
---|---|
static class |
TopologyEvent.Type |
Constructor and Description |
---|
TopologyEvent(TopologyEvent.Type type,
TopologyView oldView,
TopologyView newView) |
Modifier and Type | Method and Description |
---|---|
TopologyView |
getNewView()
Returns the view which is currently (i.e.
|
TopologyView |
getOldView()
Returns the view which was valid up until now.
|
TopologyEvent.Type |
getType()
Returns the type of this event
|
String |
toString() |
public TopologyEvent(TopologyEvent.Type type, TopologyView oldView, TopologyView newView)
public TopologyEvent.Type getType()
public TopologyView getOldView()
This is null in case of TOPOLOGY_INIT
public TopologyView getNewView()
This is null in case of TOPOLOGY_CHANGING
TOPOLOGY_CHANGING
Copyright © 2017 The Apache Software Foundation. All rights reserved.