ProtocolTypes Class

public final class ProtocolTypes
extends ExpandableStringEnum<ProtocolTypes>

Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol.

Field Summary

Modifier and Type Field and Description
static final ProtocolTypes NFSV3

NFSv3 protocol type.

static final ProtocolTypes NFSV4

NFSv4 protocol type.

static final ProtocolTypes SMB

SMB protocol type.

Constructor Summary

Constructor Description
ProtocolTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ProtocolTypes value.

Method Summary

Modifier and Type Method and Description
static ProtocolTypes fromString(String name)

Creates or finds a ProtocolTypes from its string representation.

static Collection<ProtocolTypes> values()

Gets known ProtocolTypes values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NFSV3

public static final ProtocolTypes NFSV3

NFSv3 protocol type.

NFSV4

public static final ProtocolTypes NFSV4

NFSv4 protocol type.

SMB

public static final ProtocolTypes SMB

SMB protocol type.

Constructor Details

ProtocolTypes

@Deprecated
public ProtocolTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ProtocolTypes value.

Method Details

fromString

public static ProtocolTypes fromString(String name)

Creates or finds a ProtocolTypes from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ProtocolTypes.

values

public static Collection<ProtocolTypes> values()

Gets known ProtocolTypes values.

Returns:

known ProtocolTypes values.

Applies to