com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Enum NameserverRetVal

java.lang.Object
  extended by java.lang.Enum<NameserverRetVal>
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.NameserverRetVal
All Implemented Interfaces:
Serializable, Comparable<NameserverRetVal>

public enum NameserverRetVal
extends Enum<NameserverRetVal>

Definition of possible Nameserver return value codes.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Enum Constant Summary
NS_ERROR_CANNOT_REGISTER_A_CLIENT_AS_A_CONNECTION
          A client cannot register a connection (server name).
NS_ERROR_COMMUNICATION_TYPE_MISMATCH_AT_CLIENT_REQUEST
          The client type of the requester does not match the server type of the connection.
NS_ERROR_CONNECTION_ALREADY_REGISTERED
          The connection (server name) is already registered.
NS_ERROR_CONNECTION_NOT_REGISTERED
          The connection name which was referred by the request is not registered at the nameserver.
NS_ERROR_MAX_NUM_CLIENTS_REACHED
          The Server cannot handle more clients.
NS_ERROR_NO_COMMON_MEDIUM
          Nameserver could not find a matching medium for communication.
NS_ERROR_SERVER_DOESNT_SUPPORT_ANY_MEDIA
          Can not register servers that do not support any media.
NS_ERROR_SERVER_LOSS
          Server does not exist any more.
NS_ERROR_SERVGER_ALREADY_BUILDING
          Server type wants to get media type but should already create a medium.
NS_ERROR_UNKNOWN_COMMUNICATION_TYPE
          Communication type is unknown.
NS_ERROR_UNKNOWN_REQUEST_RECEIVED
          Unknown request type received.
NS_INFO_CONNECTION_NOT_REGISTERED
          The requested connection is not registered at nameserver.
NS_SUCCESS
          Request was handled successfully.
 
Method Summary
 int getId()
          Gets the id of the command type.
static NameserverRetVal valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NameserverRetVal[] 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

NS_INFO_CONNECTION_NOT_REGISTERED

public static final NameserverRetVal NS_INFO_CONNECTION_NOT_REGISTERED
The requested connection is not registered at nameserver.


NS_SUCCESS

public static final NameserverRetVal NS_SUCCESS
Request was handled successfully.


NS_ERROR_UNKNOWN_REQUEST_RECEIVED

public static final NameserverRetVal NS_ERROR_UNKNOWN_REQUEST_RECEIVED
Unknown request type received.


NS_ERROR_CONNECTION_NOT_REGISTERED

public static final NameserverRetVal NS_ERROR_CONNECTION_NOT_REGISTERED
The connection name which was referred by the request is not registered at the nameserver.


NS_ERROR_CANNOT_REGISTER_A_CLIENT_AS_A_CONNECTION

public static final NameserverRetVal NS_ERROR_CANNOT_REGISTER_A_CLIENT_AS_A_CONNECTION
A client cannot register a connection (server name).


NS_ERROR_UNKNOWN_COMMUNICATION_TYPE

public static final NameserverRetVal NS_ERROR_UNKNOWN_COMMUNICATION_TYPE
Communication type is unknown.


NS_ERROR_CONNECTION_ALREADY_REGISTERED

public static final NameserverRetVal NS_ERROR_CONNECTION_ALREADY_REGISTERED
The connection (server name) is already registered.


NS_ERROR_COMMUNICATION_TYPE_MISMATCH_AT_CLIENT_REQUEST

public static final NameserverRetVal NS_ERROR_COMMUNICATION_TYPE_MISMATCH_AT_CLIENT_REQUEST
The client type of the requester does not match the server type of the connection.


NS_ERROR_MAX_NUM_CLIENTS_REACHED

public static final NameserverRetVal NS_ERROR_MAX_NUM_CLIENTS_REACHED
The Server cannot handle more clients.


NS_ERROR_NO_COMMON_MEDIUM

public static final NameserverRetVal NS_ERROR_NO_COMMON_MEDIUM
Nameserver could not find a matching medium for communication.


NS_ERROR_SERVER_LOSS

public static final NameserverRetVal NS_ERROR_SERVER_LOSS
Server does not exist any more.


NS_ERROR_SERVER_DOESNT_SUPPORT_ANY_MEDIA

public static final NameserverRetVal NS_ERROR_SERVER_DOESNT_SUPPORT_ANY_MEDIA
Can not register servers that do not support any media.


NS_ERROR_SERVGER_ALREADY_BUILDING

public static final NameserverRetVal NS_ERROR_SERVGER_ALREADY_BUILDING
Server type wants to get media type but should already create a medium.

Method Detail

values

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

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

valueOf

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

getId

public int getId()
Gets the id of the command type.

Returns:
The id of the command type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.