public enum Protocol extends Enum<Protocol>
Enum Constant and Description |
---|
AUTH |
BARRIER |
FD |
FD_SOCK |
FLUSH |
FRAG2 |
GMS |
MERGE2 |
MFC |
MPING |
NAKACK |
PING |
STABLE |
STATE_TRANSFER |
TCP |
TCP_GOSSIP |
UDP |
UFC |
UNICAST2 |
UNKNOWN |
VERIFY_SUSPECT |
Modifier and Type | Method and Description |
---|---|
static Protocol |
forName(String localName) |
String |
getLocalName()
Get the local name of this protocol.
|
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol UNKNOWN
public static final Protocol UDP
public static final Protocol TCP
public static final Protocol TCP_GOSSIP
public static final Protocol AUTH
public static final Protocol PING
public static final Protocol MPING
public static final Protocol MERGE2
public static final Protocol FD_SOCK
public static final Protocol FD
public static final Protocol VERIFY_SUSPECT
public static final Protocol BARRIER
public static final Protocol NAKACK
public static final Protocol UNICAST2
public static final Protocol STABLE
public static final Protocol GMS
public static final Protocol UFC
public static final Protocol MFC
public static final Protocol FRAG2
public static final Protocol STATE_TRANSFER
public static final Protocol FLUSH
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol 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 getLocalName()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.