public class DiscoveryLiteDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OAK_DISCOVERYLITE_CLUSTERVIEW
TODO: avoid hardcoding the constant here but use an Oak constant class instead if possible
|
Modifier and Type | Method and Description |
---|---|
int[] |
getActiveIds()
Returns the 'active' field of the discovery-lite descriptor
|
int[] |
getDeactivatingIds()
Returns the 'deactivating' field of the discovery-lite descriptor
|
static DiscoveryLiteDescriptor |
getDescriptorFrom(ResourceResolver resourceResolver)
{"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}
|
String |
getDescriptorStr()
Returns the raw toString of the underlying descriptor
|
int |
getMyId()
Returns the 'me' field of the discovery-lite descriptor
|
Long |
getSeqNum() |
String |
getViewId()
Returns the 'id' field of the discovery-lite descriptor
|
boolean |
isFinal() |
String |
toString() |
public static final String OAK_DISCOVERYLITE_CLUSTERVIEW
public static DiscoveryLiteDescriptor getDescriptorFrom(ResourceResolver resourceResolver) throws Exception
Exception
public int getMyId() throws Exception
Exception
- if anything in the descriptor is wrongly formattedpublic int[] getDeactivatingIds() throws Exception
Exception
- if anything in the descriptor is wrongly formattedpublic int[] getActiveIds() throws Exception
Exception
- if anything in the descriptor is wrongly formattedpublic String getViewId() throws Exception
Exception
- if anything in the descriptor is wrongly formattedpublic String getDescriptorStr()
Copyright © 2017 The Apache Software Foundation. All rights reserved.