public class HintedHandOffManager extends java.lang.Object implements HintedHandOffManagerMBean
Modifier and Type | Field and Description |
---|---|
static HintedHandOffManager |
instance |
static java.lang.String |
MBEAN_NAME |
HintedHandoffMetrics |
metrics |
Constructor and Description |
---|
HintedHandOffManager() |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.Future<?> |
compact() |
java.util.Map<java.lang.String,java.lang.Integer> |
countPendingHints()
List all the endpoints that this node has hints for, and
count the number of hints for each such endpoint.
|
void |
deleteHintsForEndpoint(java.net.InetAddress endpoint) |
void |
deleteHintsForEndpoint(java.lang.String ipOrHostname)
Nuke all hints from this node to `ep`.
|
java.util.List<java.lang.String> |
listEndpointsPendingHints()
List all the endpoints that this node has hints for.
|
void |
pauseHintsDelivery(boolean b)
pause hints delivery process
|
void |
scheduleHintDelivery(java.net.InetAddress to) |
void |
scheduleHintDelivery(java.lang.String to)
force hint delivery to an endpoint
|
void |
start() |
public static final java.lang.String MBEAN_NAME
public static final HintedHandOffManager instance
public final HintedHandoffMetrics metrics
public void start()
public void deleteHintsForEndpoint(java.lang.String ipOrHostname)
HintedHandOffManagerMBean
deleteHintsForEndpoint
in interface HintedHandOffManagerMBean
ipOrHostname
- String rep. of endpoint address to delete hints for, either ip address ("127.0.0.1") or hostnamepublic void deleteHintsForEndpoint(java.net.InetAddress endpoint)
protected java.util.concurrent.Future<?> compact() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void scheduleHintDelivery(java.net.InetAddress to)
public void scheduleHintDelivery(java.lang.String to) throws java.net.UnknownHostException
HintedHandOffManagerMBean
scheduleHintDelivery
in interface HintedHandOffManagerMBean
java.net.UnknownHostException
public void pauseHintsDelivery(boolean b)
HintedHandOffManagerMBean
pauseHintsDelivery
in interface HintedHandOffManagerMBean
public java.util.List<java.lang.String> listEndpointsPendingHints()
HintedHandOffManagerMBean
listEndpointsPendingHints
in interface HintedHandOffManagerMBean
public java.util.Map<java.lang.String,java.lang.Integer> countPendingHints()
HintedHandOffManagerMBean
countPendingHints
in interface HintedHandOffManagerMBean
Copyright © 2014 The Apache Software Foundation