Package org.jgroups.protocols.relay
Class DefaultRouteStatusListener
- java.lang.Object
-
- org.jgroups.protocols.relay.DefaultRouteStatusListener
-
- All Implemented Interfaces:
RouteStatusListener
public class DefaultRouteStatusListener extends java.lang.Object implements RouteStatusListener
The default implementation ofRouteStatusListener
- Since:
- 5.3.1
- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<Address>
addr_getter
protected java.util.List<java.lang.String>
down
protected java.util.List<java.lang.String>
up
protected boolean
verbose
-
Constructor Summary
Constructors Constructor Description DefaultRouteStatusListener(java.util.function.Supplier<Address> s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
addr()
protected DefaultRouteStatusListener
clear()
java.util.List<java.lang.String>
down()
void
memberUnreachable(Address member)
Sent back to the original sender when the unicast destination is not part of the local cluster (site)void
sitesDown(java.lang.String... sites)
The sites went downvoid
sitesUnreachable(java.lang.String... sites)
The sites are unreachable (no route to them)void
sitesUp(java.lang.String... sites)
The sites just came upjava.lang.String
toString()
java.util.List<java.lang.String>
up()
boolean
verbose()
DefaultRouteStatusListener
verbose(boolean b)
-
-
-
Field Detail
-
addr_getter
protected final java.util.function.Supplier<Address> addr_getter
-
up
protected final java.util.List<java.lang.String> up
-
down
protected final java.util.List<java.lang.String> down
-
verbose
protected boolean verbose
-
-
Constructor Detail
-
DefaultRouteStatusListener
public DefaultRouteStatusListener(java.util.function.Supplier<Address> s)
-
-
Method Detail
-
up
public java.util.List<java.lang.String> up()
-
down
public java.util.List<java.lang.String> down()
-
verbose
public DefaultRouteStatusListener verbose(boolean b)
-
verbose
public boolean verbose()
-
addr
public Address addr()
-
sitesUp
public void sitesUp(java.lang.String... sites)
Description copied from interface:RouteStatusListener
The sites just came up- Specified by:
sitesUp
in interfaceRouteStatusListener
-
sitesDown
public void sitesDown(java.lang.String... sites)
Description copied from interface:RouteStatusListener
The sites went down- Specified by:
sitesDown
in interfaceRouteStatusListener
-
sitesUnreachable
public void sitesUnreachable(java.lang.String... sites)
Description copied from interface:RouteStatusListener
The sites are unreachable (no route to them)- Specified by:
sitesUnreachable
in interfaceRouteStatusListener
-
memberUnreachable
public void memberUnreachable(Address member)
Description copied from interface:RouteStatusListener
Sent back to the original sender when the unicast destination is not part of the local cluster (site)- Specified by:
memberUnreachable
in interfaceRouteStatusListener
-
clear
protected DefaultRouteStatusListener clear()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-