org.universAAL.middleware.connectors.exception
Enum CommunicationConnectorErrorCode

Package class diagram package CommunicationConnectorErrorCode
java.lang.Object
  extended by java.lang.Enum<CommunicationConnectorErrorCode>
      extended by org.universAAL.middleware.connectors.exception.CommunicationConnectorErrorCode
All Implemented Interfaces:
Serializable, Comparable<CommunicationConnectorErrorCode>

public enum CommunicationConnectorErrorCode
extends Enum<CommunicationConnectorErrorCode>

List of common error code for the CommunicationConnector

Version:
$LastChangedRevision$ ( $LastChangedDate$ )
Author:
Michele Girolami, Francesco Furfari, Filippo Palumbo, Stefano Lenzi

Enum Constant Summary
CHANNEL_INIT_ERROR
           
CHANNEL_NOT_FOUND
          This error code means that the JGroup cluster (e.g. the channel in uAAL jargon) destination has not been found among our JGroups cluster that we are joined to
MULTIPLE_RECEIVERS
          This error code means that we are trying to perform and unicast communication, but the message contains multiple receivers
NEW_CHANNEL_ERROR
           
NO_CHANNEL_SPECIFIED
          This error code means that the message that we are trying to send does not contain the name of the JGroup cluster (e.g. the channel in uAAL jargon) where JGroups has to push the message
NOT_CONNECTED_TO_CHANNEL
          This error code means that we are not connected to the JGroup cluster (e.g. the channel in uAAL jargon) destination
RECEIVER_NOT_EXISTS
          This error code means that the message was not sent because the destination of the message was not found among the member of the JGroups cluster (e.g. the channel in uAAL jargon)
SEND_MESSAGE_ERROR
           
 
Method Summary
static CommunicationConnectorErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommunicationConnectorErrorCode[] 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

NEW_CHANNEL_ERROR

public static final CommunicationConnectorErrorCode NEW_CHANNEL_ERROR

SEND_MESSAGE_ERROR

public static final CommunicationConnectorErrorCode SEND_MESSAGE_ERROR

CHANNEL_INIT_ERROR

public static final CommunicationConnectorErrorCode CHANNEL_INIT_ERROR

RECEIVER_NOT_EXISTS

public static final CommunicationConnectorErrorCode RECEIVER_NOT_EXISTS
This error code means that the message was not sent because the destination of the message was not found among the member of the JGroups cluster (e.g. the channel in uAAL jargon)


NO_CHANNEL_SPECIFIED

public static final CommunicationConnectorErrorCode NO_CHANNEL_SPECIFIED
This error code means that the message that we are trying to send does not contain the name of the JGroup cluster (e.g. the channel in uAAL jargon) where JGroups has to push the message


MULTIPLE_RECEIVERS

public static final CommunicationConnectorErrorCode MULTIPLE_RECEIVERS
This error code means that we are trying to perform and unicast communication, but the message contains multiple receivers


CHANNEL_NOT_FOUND

public static final CommunicationConnectorErrorCode CHANNEL_NOT_FOUND
This error code means that the JGroup cluster (e.g. the channel in uAAL jargon) destination has not been found among our JGroups cluster that we are joined to


NOT_CONNECTED_TO_CHANNEL

public static final CommunicationConnectorErrorCode NOT_CONNECTED_TO_CHANNEL
This error code means that we are not connected to the JGroup cluster (e.g. the channel in uAAL jargon) destination

Method Detail

values

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

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

valueOf

public static CommunicationConnectorErrorCode 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 © 2014 universAAL Consortium. All Rights Reserved.