Class DiscoveryLiteDescriptor
- java.lang.Object
-
- org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
@Deprecated(since="2021-09-30") public class DiscoveryLiteDescriptor extends Object
Deprecated.This API is not supported in Cloud Service.Simplifies access to the underlying JSON-backed oak discovery-lite descriptor
-
-
Field Summary
Fields Modifier and Type Field Description static String
OAK_DISCOVERYLITE_CLUSTERVIEW
Deprecated.TODO: avoid hardcoding the constant here but use an Oak constant class instead if possible
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int[]
getActiveIds()
Deprecated.Returns the 'active' field of the discovery-lite descriptorint[]
getDeactivatingIds()
Deprecated.Returns the 'deactivating' field of the discovery-lite descriptorstatic DiscoveryLiteDescriptor
getDescriptorFrom(ResourceResolver resourceResolver)
Deprecated.{"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}String
getDescriptorStr()
Deprecated.Returns the raw toString of the underlying descriptorint
getMyId()
Deprecated.Returns the 'me' field of the discovery-lite descriptorLong
getSeqNum()
Deprecated.String
getViewId()
Deprecated.Returns the 'id' field of the discovery-lite descriptorboolean
isFinal()
Deprecated.String
toString()
Deprecated.
-
-
-
Field Detail
-
OAK_DISCOVERYLITE_CLUSTERVIEW
public static final String OAK_DISCOVERYLITE_CLUSTERVIEW
Deprecated.TODO: avoid hardcoding the constant here but use an Oak constant class instead if possible- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptorFrom
public static DiscoveryLiteDescriptor getDescriptorFrom(ResourceResolver resourceResolver) throws Exception
Deprecated.{"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}- Throws:
Exception
-
getMyId
public int getMyId() throws Exception
Deprecated.Returns the 'me' field of the discovery-lite descriptor- Returns:
- the 'me' field of the discovery-lite descriptor
- Throws:
Exception
- if anything in the descriptor is wrongly formatted
-
getDeactivatingIds
public int[] getDeactivatingIds() throws Exception
Deprecated.Returns the 'deactivating' field of the discovery-lite descriptor- Returns:
- the 'deactivating' field of the discovery-lite descriptor
- Throws:
Exception
- if anything in the descriptor is wrongly formatted
-
getActiveIds
public int[] getActiveIds() throws Exception
Deprecated.Returns the 'active' field of the discovery-lite descriptor- Returns:
- the 'active' field of the discovery-lite descriptor
- Throws:
Exception
- if anything in the descriptor is wrongly formatted
-
getViewId
public String getViewId() throws Exception
Deprecated.Returns the 'id' field of the discovery-lite descriptor- Returns:
- the 'id' field of the discovery-lite descriptor
- Throws:
Exception
- if anything in the descriptor is wrongly formatted
-
getDescriptorStr
public String getDescriptorStr()
Deprecated.Returns the raw toString of the underlying descriptor- Returns:
- the raw toString of the underlying descriptor
-
-