Package de.bsvrz.dav.dav.main
Enum ConnectionState
- java.lang.Object
-
- java.lang.Enum<ConnectionState>
-
- de.bsvrz.dav.dav.main.ConnectionState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectionState>
public enum ConnectionState extends java.lang.Enum<ConnectionState>
Stellt einen Verbindungsstatus einer Anmeldung dar
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FROM_LOCAL_OK
Lokale Verbindung, Status immer OKFROM_REMOTE_OK
Eingehende Verbindung, Status immer OKTO_REMOTE_MULTIPLE
Ausgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere ZentraldatenverteilerTO_REMOTE_NOT_ALLOWED
Ausgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhandenTO_REMOTE_NOT_RESPONSIBLE
Ausgehende Verbindung, anderer Datenverteiler ist nicht zuständigTO_REMOTE_OK
Ausgehende Verbindung, anderer Datenverteiler ist zuständig (OK)TO_REMOTE_WAITING
Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionState
fromByte(byte b)
Wandelt ein TransmitterSubscriptionsConstants-Byte in einen Status umboolean
isValid()
Gibt zurück, ob die Anmeldung gültig iststatic ConnectionState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FROM_LOCAL_OK
public static final ConnectionState FROM_LOCAL_OK
Lokale Verbindung, Status immer OK
-
FROM_REMOTE_OK
public static final ConnectionState FROM_REMOTE_OK
Eingehende Verbindung, Status immer OK
-
TO_REMOTE_WAITING
public static final ConnectionState TO_REMOTE_WAITING
Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners
-
TO_REMOTE_OK
public static final ConnectionState TO_REMOTE_OK
Ausgehende Verbindung, anderer Datenverteiler ist zuständig (OK)
-
TO_REMOTE_NOT_RESPONSIBLE
public static final ConnectionState TO_REMOTE_NOT_RESPONSIBLE
Ausgehende Verbindung, anderer Datenverteiler ist nicht zuständig
-
TO_REMOTE_NOT_ALLOWED
public static final ConnectionState TO_REMOTE_NOT_ALLOWED
Ausgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhanden
-
TO_REMOTE_MULTIPLE
public static final ConnectionState TO_REMOTE_MULTIPLE
Ausgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere Zentraldatenverteiler
-
-
Method Detail
-
values
public static ConnectionState[] 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 (ConnectionState c : ConnectionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromByte
public static ConnectionState fromByte(byte b)
Wandelt ein TransmitterSubscriptionsConstants-Byte in einen Status um- Parameters:
b
- byte- Returns:
- Status
-
isValid
public boolean isValid()
Gibt zurück, ob die Anmeldung gültig ist- Returns:
- True bei gültiger Anmeldung, siehe Definitionen der einzelnen Enums
-
-