csdk.v1_0.api.command
Enum ICommandInfo.FinalizationType

java.lang.Object
  extended by java.lang.Enum<ICommandInfo.FinalizationType>
      extended by csdk.v1_0.api.command.ICommandInfo.FinalizationType
All Implemented Interfaces:
Serializable, Comparable<ICommandInfo.FinalizationType>
Enclosing interface:
ICommandInfo

public static enum ICommandInfo.FinalizationType
extends Enum<ICommandInfo.FinalizationType>

Enumeração dos possíveis tipos de finalização de um comando.


Enum Constant Summary
COMPLETED
          Indica que um comando terminou mas não foi configurado para informar o código de retorno.
ERROR
          Indica que um comando terminou com erro.
INIT_FAILURE
          Indica que um comando nao foi iniciado.
KILLED
          Indica que um comando foi abortado.
LOST
          Indica que um comando foi perdido.
NO_CODE
          Indica que um comando terminou, deveria informar o código de retorno, mas não foi possível ler esse código, para determinar se foi bem sucedido.
SUCCESS
          Indica que um comando terminou com sucesso.
 
Method Summary
static ICommandInfo.FinalizationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ICommandInfo.FinalizationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOST

public static final ICommandInfo.FinalizationType LOST
Indica que um comando foi perdido.


KILLED

public static final ICommandInfo.FinalizationType KILLED
Indica que um comando foi abortado.


INIT_FAILURE

public static final ICommandInfo.FinalizationType INIT_FAILURE
Indica que um comando nao foi iniciado.


COMPLETED

public static final ICommandInfo.FinalizationType COMPLETED
Indica que um comando terminou mas não foi configurado para informar o código de retorno.


ERROR

public static final ICommandInfo.FinalizationType ERROR
Indica que um comando terminou com erro.


SUCCESS

public static final ICommandInfo.FinalizationType SUCCESS
Indica que um comando terminou com sucesso.


NO_CODE

public static final ICommandInfo.FinalizationType NO_CODE
Indica que um comando terminou, deveria informar o código de retorno, mas não foi possível ler esse código, para determinar se foi bem sucedido.

Method Detail

values

public static ICommandInfo.FinalizationType[] 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 (ICommandInfo.FinalizationType c : ICommandInfo.FinalizationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ICommandInfo.FinalizationType 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 name
NullPointerException - if the argument is null


Copyright © 2013–2014 Tecgraf/PUC-Rio. All rights reserved.