public static enum NetworkAddressUtils.ServiceType extends Enum<NetworkAddressUtils.ServiceType>
| Enum Constant and Description |
|---|
MASTER_RPC
Master RPC service (Thrift)
|
MASTER_WEB
Master web service (Jetty)
|
WORKER_DATA
Worker data service (Netty)
|
WORKER_RPC
Worker RPC service (Thrift)
|
WORKER_WEB
Worker web service (Jetty)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBindHostKey()
Gets the key of bind hostname.
|
int |
getDefaultPort()
Gets the default port number on service
|
String |
getHostNameKey()
Gets the key of connect hostname.
|
String |
getPortKey()
Gets the key of service port
|
String |
getServiceName()
Gets service name.
|
static NetworkAddressUtils.ServiceType |
valueOf(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.
|
public static final NetworkAddressUtils.ServiceType MASTER_RPC
public static final NetworkAddressUtils.ServiceType MASTER_WEB
public static final NetworkAddressUtils.ServiceType WORKER_RPC
public static final NetworkAddressUtils.ServiceType WORKER_DATA
public static final NetworkAddressUtils.ServiceType WORKER_WEB
public static NetworkAddressUtils.ServiceType[] values()
for (NetworkAddressUtils.ServiceType c : NetworkAddressUtils.ServiceType.values()) System.out.println(c);
public static NetworkAddressUtils.ServiceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getServiceName()
public String getHostNameKey()
public String getBindHostKey()
public String getPortKey()
public int getDefaultPort()
Copyright © 2015. All Rights Reserved.