public class ClusterNodeInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getId() |
static ClusterNodeInfo |
getInstance(DocumentStore store)
Create a cluster node info instance for the store, with the
|
static ClusterNodeInfo |
getInstance(DocumentStore store,
String machineId,
String instanceId)
Create a cluster node info instance for the store.
|
long |
getLeaseTime() |
void |
renewLease(long nextCheckMillis)
Renew the cluster id lease.
|
void |
setLeaseTime(long leaseTime) |
String |
toString() |
public int getId()
public static ClusterNodeInfo getInstance(DocumentStore store)
store - the document store (for the lease)public static ClusterNodeInfo getInstance(DocumentStore store, String machineId, String instanceId)
store - the document store (for the lease)machineId - the machine id (null for MAC address)instanceId - the instance id (null for current working directory)public void renewLease(long nextCheckMillis)
nextCheckMillis - the millisecond offsetpublic void setLeaseTime(long leaseTime)
public long getLeaseTime()
public void dispose()
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.