public class ZookeeperLastPrimaryHandler extends Object
| Constructor and Description |
|---|
ZookeeperLastPrimaryHandler(SpaceImpl spaceImpl,
AttributeStore attributeStore,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeStoreKey() |
String |
getLastPrimaryName() |
String |
getLastPrimaryNameMemoryXtend() |
static String |
getSeparator() |
boolean |
isLastPrimary() |
void |
removeLastPrimaryRecord() |
void |
setMeAsLastPrimary() |
static String |
toId(String instanceId,
String uid) |
static String |
toPath(String spaceName,
String partitionId) |
public ZookeeperLastPrimaryHandler(SpaceImpl spaceImpl, AttributeStore attributeStore, org.slf4j.Logger logger)
public void removeLastPrimaryRecord()
throws IOException
IOExceptionpublic void setMeAsLastPrimary()
throws IOException
IOExceptionpublic boolean isLastPrimary()
public String getLastPrimaryName() throws IOException
IOExceptionpublic String getLastPrimaryNameMemoryXtend() throws IOException
IOExceptionpublic String getAttributeStoreKey()
public static String getSeparator()
Copyright © GigaSpaces.