Class Instance
- java.lang.Object
-
- org.apache.pinot.spi.config.BaseJsonConfig
-
- org.apache.pinot.spi.config.instance.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 Summary
Fields Modifier and Type Field Description static intNOT_SET_ADMIN_PORT_VALUEstatic intNOT_SET_GRPC_PORT_VALUEstatic intNOT_SET_QUERY_MAILBOX_PORT_VALUEstatic intNOT_SET_QUERY_SERVER_PORT_VALUE
-
Method Summary
Modifier and Type Method Description intgetAdminPort()intgetGrpcPort()StringgetHost()Map<String,Integer>getPools()intgetPort()intgetQueryMailboxPort()intgetQueryServicePort()List<String>getTags()InstanceTypegetType()booleanisQueriesDisabled()-
Methods inherited from class org.apache.pinot.spi.config.BaseJsonConfig
equals, hashCode, toJsonNode, toJsonString, toString
-
-
-
-
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
-
-
Method Detail
-
getHost
public String getHost()
-
getPort
public int getPort()
-
getType
public InstanceType getType()
-
getGrpcPort
public int getGrpcPort()
-
getAdminPort
public int getAdminPort()
-
getQueryServicePort
public int getQueryServicePort()
-
getQueryMailboxPort
public int getQueryMailboxPort()
-
isQueriesDisabled
public boolean isQueriesDisabled()
-
-