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

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

public enum NameserverRequestType
extends Enum<NameserverRequestType>

Contains possible types of nameserver requests and responses.

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
CLIENT_DISCONNECTED
          This type has to be set when a client has disconnected from a server telling the nameserver to decrease the number of clients connected the the server of a communication channel.
CLOSE_ACCEPT_TASK
          Signalizes a accept task of a connection to close itself.
CONTROL_COMMAND
          This type has to be set when sending a control command to the nameserver.
FALSE_TYPE
          This type is set, if a Request is not valid.
GET_CONNECTION
          This type has to be set when asking the server to get the description of a communication channel.
IS_REGISTERED
          This type has to be set when the nameserver should be asked if a specified connection name is registered at the nameserver.
REGISTER_CONNECTION
          This type has to be set when asking the server to register a communication channel.
SET_ADDRESS_REPLY
          Set by the nameserver to confirm setting the server address of a server.
SET_SERVER_ADDRESS
          This type has to be set when telling the nameserver the address of the opend connection.
UNREGISTER_CONNECTION
          This type has to be set when asking the server to unregister a communication channel.
 
Method Summary
static NameserverRequestType fromId(int id)
          Creats a nameserver request out of the given id.
 int getId()
          Gets the id of the request type.
static NameserverRequestType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NameserverRequestType[] 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

FALSE_TYPE

public static final NameserverRequestType FALSE_TYPE
This type is set, if a Request is not valid.


CONTROL_COMMAND

public static final NameserverRequestType CONTROL_COMMAND
This type has to be set when sending a control command to the nameserver.


REGISTER_CONNECTION

public static final NameserverRequestType REGISTER_CONNECTION
This type has to be set when asking the server to register a communication channel.


SET_SERVER_ADDRESS

public static final NameserverRequestType SET_SERVER_ADDRESS
This type has to be set when telling the nameserver the address of the opend connection.


UNREGISTER_CONNECTION

public static final NameserverRequestType UNREGISTER_CONNECTION
This type has to be set when asking the server to unregister a communication channel.


GET_CONNECTION

public static final NameserverRequestType GET_CONNECTION
This type has to be set when asking the server to get the description of a communication channel.


CLIENT_DISCONNECTED

public static final NameserverRequestType CLIENT_DISCONNECTED
This type has to be set when a client has disconnected from a server telling the nameserver to decrease the number of clients connected the the server of a communication channel.


IS_REGISTERED

public static final NameserverRequestType IS_REGISTERED
This type has to be set when the nameserver should be asked if a specified connection name is registered at the nameserver.


SET_ADDRESS_REPLY

public static final NameserverRequestType SET_ADDRESS_REPLY
Set by the nameserver to confirm setting the server address of a server.


CLOSE_ACCEPT_TASK

public static final NameserverRequestType CLOSE_ACCEPT_TASK
Signalizes a accept task of a connection to close itself.

Method Detail

values

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

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

valueOf

public static NameserverRequestType 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 request type.

Returns:
The id of the request 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.

fromId

public static NameserverRequestType fromId(int id)
Creats a nameserver request out of the given id.

Parameters:
id - The id of the nameserver request.
Returns:
The nameserver request type or FalseType if type is not known.
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.