openr66.context
Enum ErrorCode

java.lang.Object
  extended by java.lang.Enum<ErrorCode>
      extended by openr66.context.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>

public enum ErrorCode
extends Enum<ErrorCode>

This enum class keeps all code that will be returned into the result and store (char representation) into the runner.

Author:
Frederic Bregier

Enum Constant Summary
BadAuthent
          Code stands for bad authentication (remote or local)
CanceledTransfer
          Code stands for a request of canceling transfer
CommandNotFound
          Code stands for Command not found error
CompleteOk
          Code stands for All action are completed ok
ConnectionImpossible
          Code stands for connection is impossible (remote or local reason)
Disconnection
          Code stands for Network disconnection
ExternalOp
          Code stands for External operation in error (pre, post or error processing)
FileNotFound
          Code stands for File not found error
FinalOp
          Code stands for final action (like moving file) is in error
InitOk
          Code stands for initialization ok (internal connection, authentication)
Internal
          Code stands for an internal error
LoopSelfRequestedHost
          Code stands for self requested host starting request is invalid
MD5Error
          Code stands for Transfer in error due to MD5
NotKnownHost
          Code stands for not known host
PassThroughMode
          Code stands for a request in PassThroughMode and required action is incompatible with this mode
PostProcessingOk
          Code stands for post processing ok
PreProcessingOk
          Code stands for pre processing ok
QueryAlreadyFinished
          Code stands for a request that is already remotely finished
QueryRemotelyUnknown
          Code stands for request should exist but is not found on remote host
QueryStillRunning
          Code stands for request that is still running
RemoteError
          Code stands for a remote error is received
RemoteShutdown
          Code stands for Remote Shutdown
Running
          Code stands for running step
ServerOverloaded
          Code stands for connection is impossible now due to limits(remote or local reason)
Shutdown
          Code stands for shutdown is in progress
StoppedTransfer
          Code stands for a request of stopping transfer
TransferError
          Code stands for Transfer is in error
TransferOk
          Code stands for transfer OK
Unimplemented
          Code stands for unimplemented feature
Unknown
          Code stands for unknown type of error
Warning
          Warning in execution
 
Field Summary
 char code
          Code could be used to switch case operations
 String mesg
          Literal for this code
 
Method Summary
 String getCode()
           
static ErrorCode getFromCode(String code)
          Code is either the 1 char code or the exact name in Enum
static ErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorCode[] 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

InitOk

public static final ErrorCode InitOk
Code stands for initialization ok (internal connection, authentication)


PreProcessingOk

public static final ErrorCode PreProcessingOk
Code stands for pre processing ok


TransferOk

public static final ErrorCode TransferOk
Code stands for transfer OK


PostProcessingOk

public static final ErrorCode PostProcessingOk
Code stands for post processing ok


CompleteOk

public static final ErrorCode CompleteOk
Code stands for All action are completed ok


ConnectionImpossible

public static final ErrorCode ConnectionImpossible
Code stands for connection is impossible (remote or local reason)


ServerOverloaded

public static final ErrorCode ServerOverloaded
Code stands for connection is impossible now due to limits(remote or local reason)


BadAuthent

public static final ErrorCode BadAuthent
Code stands for bad authentication (remote or local)


ExternalOp

public static final ErrorCode ExternalOp
Code stands for External operation in error (pre, post or error processing)


TransferError

public static final ErrorCode TransferError
Code stands for Transfer is in error


MD5Error

public static final ErrorCode MD5Error
Code stands for Transfer in error due to MD5


Disconnection

public static final ErrorCode Disconnection
Code stands for Network disconnection


RemoteShutdown

public static final ErrorCode RemoteShutdown
Code stands for Remote Shutdown


FinalOp

public static final ErrorCode FinalOp
Code stands for final action (like moving file) is in error


Unimplemented

public static final ErrorCode Unimplemented
Code stands for unimplemented feature


Shutdown

public static final ErrorCode Shutdown
Code stands for shutdown is in progress


RemoteError

public static final ErrorCode RemoteError
Code stands for a remote error is received


Internal

public static final ErrorCode Internal
Code stands for an internal error


StoppedTransfer

public static final ErrorCode StoppedTransfer
Code stands for a request of stopping transfer


CanceledTransfer

public static final ErrorCode CanceledTransfer
Code stands for a request of canceling transfer


Warning

public static final ErrorCode Warning
Warning in execution


Unknown

public static final ErrorCode Unknown
Code stands for unknown type of error


QueryAlreadyFinished

public static final ErrorCode QueryAlreadyFinished
Code stands for a request that is already remotely finished


QueryStillRunning

public static final ErrorCode QueryStillRunning
Code stands for request that is still running


NotKnownHost

public static final ErrorCode NotKnownHost
Code stands for not known host


LoopSelfRequestedHost

public static final ErrorCode LoopSelfRequestedHost
Code stands for self requested host starting request is invalid


QueryRemotelyUnknown

public static final ErrorCode QueryRemotelyUnknown
Code stands for request should exist but is not found on remote host


FileNotFound

public static final ErrorCode FileNotFound
Code stands for File not found error


CommandNotFound

public static final ErrorCode CommandNotFound
Code stands for Command not found error


PassThroughMode

public static final ErrorCode PassThroughMode
Code stands for a request in PassThroughMode and required action is incompatible with this mode


Running

public static final ErrorCode Running
Code stands for running step

Field Detail

mesg

public String mesg
Literal for this code


code

public char code
Code could be used to switch case operations

Method Detail

values

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

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

valueOf

public static ErrorCode 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

getCode

public String getCode()

getFromCode

public static ErrorCode getFromCode(String code)
Code is either the 1 char code or the exact name in Enum

Parameters:
code -
Returns:
the ErrorCode according to the code


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.