public class DiscoveryLiteDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.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]}
|
java.lang.String |
getDescriptorStr()
Returns the raw toString of the underlying descriptor
|
int |
getMyId()
Returns the 'me' field of the discovery-lite descriptor
|
java.lang.Long |
getSeqNum() |
java.lang.String |
getViewId()
Returns the 'id' field of the discovery-lite descriptor
|
boolean |
isFinal() |
java.lang.String |
toString() |
public static final java.lang.String OAK_DISCOVERYLITE_CLUSTERVIEW
public static DiscoveryLiteDescriptor getDescriptorFrom(ResourceResolver resourceResolver) throws java.lang.Exception
java.lang.Exception
public int getMyId() throws java.lang.Exception
java.lang.Exception
- if anything in the descriptor is wrongly formattedpublic int[] getDeactivatingIds() throws java.lang.Exception
java.lang.Exception
- if anything in the descriptor is wrongly formattedpublic int[] getActiveIds() throws java.lang.Exception
java.lang.Exception
- if anything in the descriptor is wrongly formattedpublic java.lang.String getViewId() throws java.lang.Exception
java.lang.Exception
- if anything in the descriptor is wrongly formattedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescriptorStr()
public java.lang.Long getSeqNum() throws java.lang.Exception
java.lang.Exception
public boolean isFinal() throws java.lang.Exception
java.lang.Exception
Copyright © 2022 The Apache Software Foundation. All rights reserved.