Enum L2TunnelHandler.Result
- java.lang.Object
-
- java.lang.Enum<L2TunnelHandler.Result>
-
- org.onosproject.segmentrouting.pwaas.L2TunnelHandler.Result
-
- All Implemented Interfaces:
Serializable,Comparable<L2TunnelHandler.Result>
- Enclosing interface:
- L2TunnelHandler
public static enum L2TunnelHandler.Result extends Enum<L2TunnelHandler.Result>
Enum helper to carry results of various operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_ERRORError in global pseudowires configuration.INTERNAL_ERRORWe have an internal error during the deployment or removal phase.PATH_NOT_FOUNDNo path found between the connection points.SUCCESSHappy ending scenario.WRONG_PARAMETERSWe have problems with the supplied parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description L2TunnelHandler.ResultappendError(String error)StringgetDescription()intgetNextId()StringgetSpecificError()protected voidsetNextId(int nextId)StringtoString()static L2TunnelHandler.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static L2TunnelHandler.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final L2TunnelHandler.Result SUCCESS
Happy ending scenario.
-
WRONG_PARAMETERS
public static final L2TunnelHandler.Result WRONG_PARAMETERS
We have problems with the supplied parameters.
-
INTERNAL_ERROR
public static final L2TunnelHandler.Result INTERNAL_ERROR
We have an internal error during the deployment or removal phase.
-
PATH_NOT_FOUND
public static final L2TunnelHandler.Result PATH_NOT_FOUND
No path found between the connection points.
-
CONFIGURATION_ERROR
public static final L2TunnelHandler.Result CONFIGURATION_ERROR
Error in global pseudowires configuration.
-
-
Method Detail
-
values
public static L2TunnelHandler.Result[] 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 (L2TunnelHandler.Result c : L2TunnelHandler.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static L2TunnelHandler.Result valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
appendError
public L2TunnelHandler.Result appendError(String error)
-
getSpecificError
public String getSpecificError()
-
getDescription
public String getDescription()
-
getNextId
public int getNextId()
-
setNextId
protected void setNextId(int nextId)
-
toString
public String toString()
- Overrides:
toStringin classEnum<L2TunnelHandler.Result>
-
-