Package alluxio.util.network
Enum NetworkAddressUtils.ServiceType
- java.lang.Object
-
- java.lang.Enum<NetworkAddressUtils.ServiceType>
-
- alluxio.util.network.NetworkAddressUtils.ServiceType
-
- All Implemented Interfaces:
NetworkAddressUtils.ServiceAttributeProvider
,java.io.Serializable
,java.lang.Comparable<NetworkAddressUtils.ServiceType>
- Enclosing class:
- NetworkAddressUtils
public static enum NetworkAddressUtils.ServiceType extends java.lang.Enum<NetworkAddressUtils.ServiceType> implements NetworkAddressUtils.ServiceAttributeProvider
Different types of services that client uses to connect. These types also indicate the service bind address.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FUSE_WEB
FUSE web service (Jetty).JOB_MASTER_RAFT
Job master Raft service (Netty).JOB_MASTER_RPC
Job master RPC service (gRPC).JOB_MASTER_WEB
Job master web service (Jetty).JOB_WORKER_RPC
Job worker RPC service (gRPC).JOB_WORKER_WEB
Job master web service (Jetty).MASTER_RAFT
Master Raft service (Netty).MASTER_RPC
Master RPC service (gRPC).MASTER_WEB
Master web service (Jetty).PROXY_WEB
Proxy web service (Jetty).WORKER_DATA
Worker data service (Netty).WORKER_RPC
Worker RPC service (gRPC).WORKER_WEB
Worker web service (Jetty).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyKey
getBindHostKey()
Gets the key of bind hostname.int
getDefaultPort()
Gets the default port number on service.PropertyKey
getHostNameKey()
Gets the key of connect hostname.PropertyKey
getPortKey()
Gets the key of service port.java.lang.String
getServiceName()
Gets service name.static NetworkAddressUtils.ServiceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NetworkAddressUtils.ServiceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FUSE_WEB
public static final NetworkAddressUtils.ServiceType FUSE_WEB
FUSE web service (Jetty).
-
JOB_MASTER_RAFT
public static final NetworkAddressUtils.ServiceType JOB_MASTER_RAFT
Job master Raft service (Netty). The bind and connect hosts are the same because the underlying Raft implementation doesn't differentiate between bind and connect hosts.
-
MASTER_RAFT
public static final NetworkAddressUtils.ServiceType MASTER_RAFT
Master Raft service (Netty). The bind and connect hosts are the same because the underlying Raft implementation doesn't differentiate between bind and connect hosts.
-
JOB_MASTER_RPC
public static final NetworkAddressUtils.ServiceType JOB_MASTER_RPC
Job master RPC service (gRPC).
-
JOB_MASTER_WEB
public static final NetworkAddressUtils.ServiceType JOB_MASTER_WEB
Job master web service (Jetty).
-
JOB_WORKER_RPC
public static final NetworkAddressUtils.ServiceType JOB_WORKER_RPC
Job worker RPC service (gRPC).
-
JOB_WORKER_WEB
public static final NetworkAddressUtils.ServiceType JOB_WORKER_WEB
Job master web service (Jetty).
-
MASTER_RPC
public static final NetworkAddressUtils.ServiceType MASTER_RPC
Master RPC service (gRPC).
-
MASTER_WEB
public static final NetworkAddressUtils.ServiceType MASTER_WEB
Master web service (Jetty).
-
WORKER_RPC
public static final NetworkAddressUtils.ServiceType WORKER_RPC
Worker RPC service (gRPC).
-
WORKER_DATA
public static final NetworkAddressUtils.ServiceType WORKER_DATA
Worker data service (Netty).
-
WORKER_WEB
public static final NetworkAddressUtils.ServiceType WORKER_WEB
Worker web service (Jetty).
-
PROXY_WEB
public static final NetworkAddressUtils.ServiceType PROXY_WEB
Proxy web service (Jetty).
-
-
Method Detail
-
values
public static NetworkAddressUtils.ServiceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NetworkAddressUtils.ServiceType c : NetworkAddressUtils.ServiceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkAddressUtils.ServiceType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getServiceName
public java.lang.String getServiceName()
Gets service name.- Specified by:
getServiceName
in interfaceNetworkAddressUtils.ServiceAttributeProvider
- Returns:
- service name
-
getHostNameKey
public PropertyKey getHostNameKey()
Gets the key of connect hostname.- Specified by:
getHostNameKey
in interfaceNetworkAddressUtils.ServiceAttributeProvider
- Returns:
- key of connect hostname
-
getBindHostKey
public PropertyKey getBindHostKey()
Gets the key of bind hostname.- Specified by:
getBindHostKey
in interfaceNetworkAddressUtils.ServiceAttributeProvider
- Returns:
- key of bind hostname
-
getPortKey
public PropertyKey getPortKey()
Gets the key of service port.- Specified by:
getPortKey
in interfaceNetworkAddressUtils.ServiceAttributeProvider
- Returns:
- key of service port
-
getDefaultPort
public int getDefaultPort()
Gets the default port number on service.- Specified by:
getDefaultPort
in interfaceNetworkAddressUtils.ServiceAttributeProvider
- Returns:
- default port
-
-