Class Instance

  • All Implemented Interfaces:
    Serializable

    public class Instance
    extends BaseJsonConfig
    Instance configuration.
     Example:
     {
       "host": "hostname.example.com",
       "port": 1234,
       "type": "SERVER",
       "tags": ["example_OFFLINE"],
       "pools": {
         "example_OFFLINE": 0
       },
       "grpcPort": 8090
     }
     
    See Also:
    Serialized Form
    • Field Detail

      • NOT_SET_GRPC_PORT_VALUE

        public static final int NOT_SET_GRPC_PORT_VALUE
        See Also:
        Constant Field Values
      • NOT_SET_ADMIN_PORT_VALUE

        public static final int NOT_SET_ADMIN_PORT_VALUE
        See Also:
        Constant Field Values
      • NOT_SET_QUERY_SERVER_PORT_VALUE

        public static final int NOT_SET_QUERY_SERVER_PORT_VALUE
        See Also:
        Constant Field Values
      • NOT_SET_QUERY_MAILBOX_PORT_VALUE

        public static final int NOT_SET_QUERY_MAILBOX_PORT_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Instance

        public Instance​(String host,
                        int port,
                        InstanceType type,
                        @Nullable
                        List<String> tags,
                        @Nullable
                        Map<String,​Integer> pools,
                        int grpcPort,
                        int adminPort,
                        int queryServicePort,
                        int queryMailboxPort,
                        boolean queriesDisabled)
    • Method Detail

      • getHost

        public String getHost()
      • getPort

        public int getPort()
      • getTags

        @Nullable
        public List<String> getTags()
      • getGrpcPort

        public int getGrpcPort()
      • getAdminPort

        public int getAdminPort()
      • getQueryServicePort

        public int getQueryServicePort()
      • getQueryMailboxPort

        public int getQueryMailboxPort()
      • isQueriesDisabled

        public boolean isQueriesDisabled()