public static enum IServerAddress.Protocol extends java.lang.Enum<IServerAddress.Protocol>
Enum Constant and Description |
---|
P4JAVA
Default protocol (same as p4jrpc).
|
P4JAVASSL
Default SSL protocol (same as p4jrpcssl).
|
P4JRPC
One-shot (connection-per-command) RPC protocol.
|
P4JRPCNTS
Non-thread-safe (multiple-commands-per-connection) RPC protocol.
|
P4JRPCNTSSSL
Non-thread-safe (multiple-commands-per-connection) SSL RPC protocol.
|
P4JRPCSSL
One-shot (connection-per-command) SSL RPC protocol.
|
P4JRSH
RSH protocol (run p4d in 'rsh' mode).
|
P4JRSHNTS
Non-thread-safe (multiple-commands-per-connection) RSH protocol (run p4d in 'rsh' mode).
|
Modifier and Type | Method and Description |
---|---|
static IServerAddress.Protocol |
fromString(java.lang.String protocol)
Returns the connection protocol as inferred from the passed-in value.
|
boolean |
isRsh()
Return true if the protocol is RSH.
|
boolean |
isSecure()
Return true if the protocol is secure.
|
java.lang.String |
toString()
Returns the string value representing the connection protocol for the
server URI.
|
static IServerAddress.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IServerAddress.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IServerAddress.Protocol P4JAVA
public static final IServerAddress.Protocol P4JAVASSL
public static final IServerAddress.Protocol P4JRPC
public static final IServerAddress.Protocol P4JRPCSSL
public static final IServerAddress.Protocol P4JRPCNTS
public static final IServerAddress.Protocol P4JRPCNTSSSL
public static final IServerAddress.Protocol P4JRSH
public static final IServerAddress.Protocol P4JRSHNTS
public static IServerAddress.Protocol[] values()
for (IServerAddress.Protocol c : IServerAddress.Protocol.values()) System.out.println(c);
public static IServerAddress.Protocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static IServerAddress.Protocol fromString(java.lang.String protocol)
protocol
- the string value of the connection protocolpublic java.lang.String toString()
toString
in class java.lang.Enum<IServerAddress.Protocol>
public boolean isSecure()
We use a pattern
public boolean isRsh()
We use a pattern