Class DiscoveryLiteDescriptor


  • public class DiscoveryLiteDescriptor
    extends Object
    Simplifies access to the underlying JSON-backed oak discovery-lite descriptor
    • Field Detail

      • OAK_DISCOVERYLITE_CLUSTERVIEW

        public static final String OAK_DISCOVERYLITE_CLUSTERVIEW
        TODO: avoid hardcoding the constant here but use an Oak constant class instead if possible
        See Also:
        Constant Field Values
    • Method Detail

      • getMyId

        public int getMyId()
                    throws Exception
        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
        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
        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
        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()
        Returns the raw toString of the underlying descriptor
        Returns:
        the raw toString of the underlying descriptor