Package de.bsvrz.dav.dav.main
Enum Class ConnectionState
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionState>
,Constable
Stellt einen Verbindungsstatus einer Anmeldung dar
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLokale Verbindung, Status immer OKEingehende Verbindung, Status immer OKAusgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere ZentraldatenverteilerAusgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhandenAusgehende Verbindung, anderer Datenverteiler ist nicht zuständigAusgehende Verbindung, anderer Datenverteiler ist zuständig (OK)Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionState
fromByte
(byte b) Wandelt ein TransmitterSubscriptionsConstants-Byte in einen Status umboolean
isValid()
Gibt zurück, ob die Anmeldung gültig iststatic ConnectionState
Returns the enum constant of this class with the specified name.static ConnectionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FROM_LOCAL_OK
Lokale Verbindung, Status immer OK -
FROM_REMOTE_OK
Eingehende Verbindung, Status immer OK -
TO_REMOTE_WAITING
Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners -
TO_REMOTE_OK
Ausgehende Verbindung, anderer Datenverteiler ist zuständig (OK) -
TO_REMOTE_NOT_RESPONSIBLE
Ausgehende Verbindung, anderer Datenverteiler ist nicht zuständig -
TO_REMOTE_NOT_ALLOWED
Ausgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhanden -
TO_REMOTE_MULTIPLE
Ausgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere Zentraldatenverteiler
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromByte
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
-