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 |
|---|---|
static int |
calculateHintTTL(RowMutation mutation) |
protected java.util.concurrent.Future<?> |
compact() |
void |
deleteHintsForEndpoint(java.net.InetAddress endpoint) |
void |
deleteHintsForEndpoint(java.lang.String ipOrHostname)
Nuke all hints from this node to `ep`.
|
RowMutation |
hintFor(RowMutation mutation,
int ttl,
java.util.UUID targetId)
Returns a mutation representing a Hint to be sent to
targetId
as soon as it becomes available again. |
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 RowMutation hintFor(RowMutation mutation, int ttl, java.util.UUID targetId)
targetId
as soon as it becomes available again.public static int calculateHintTTL(RowMutation mutation)
public void start()
public void deleteHintsForEndpoint(java.lang.String ipOrHostname)
HintedHandOffManagerMBeandeleteHintsForEndpoint in interface HintedHandOffManagerMBeanipOrHostname - 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()
public void scheduleHintDelivery(java.net.InetAddress to)
public void scheduleHintDelivery(java.lang.String to)
throws java.net.UnknownHostException
HintedHandOffManagerMBeanscheduleHintDelivery in interface HintedHandOffManagerMBeanjava.net.UnknownHostExceptionpublic void pauseHintsDelivery(boolean b)
HintedHandOffManagerMBeanpauseHintsDelivery in interface HintedHandOffManagerMBeanpublic java.util.List<java.lang.String> listEndpointsPendingHints()
HintedHandOffManagerMBeanlistEndpointsPendingHints in interface HintedHandOffManagerMBeanCopyright © 2013 The Apache Software Foundation