Class TransportParameter
java.lang.Object
de.iip_ecosphere.platform.transport.connectors.TransportParameter
Captures common transport parameter for all connector types. Connectors shall document which of the
optional settings are required.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAutomatic connector closing actions.static classA builder for transport parameter. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTransportParameter(String host, int port) Creates a transport parameter instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the timeout for individual send/receive actions.Returns the unique application/client identifier.Returns theIdentityStorekey for the authentication, usually a password token.booleanReturns whether the application identification is expected to be unique or shall be made unique upon first connect.Returns the close action.getHost()Returns the network name of the host.booleanReturns whether TLS hostname verification shall be performed.intReturns the time to keep a connection alive.Returns the alias of the key ingetKeystoreKey()to use.Returns the optional key to access the TLS keystore key to be obtained fromIdentityStore.Returns the MQTT QoS level (may not apply to other protocols).intgetPort()Returns the TCP communication port of the host.
-
Field Details
-
host
-
port
private int port -
actionTimeout
private int actionTimeout -
applicationId
-
autoApplicationId
private boolean autoApplicationId -
keepAlive
private int keepAlive -
keyAlias
-
keystoreKey
-
hostnameVerification
private boolean hostnameVerification -
authenticationKey
-
qos
-
closeAction
-
-
Constructor Details
-
TransportParameter
Creates a transport parameter instance.- Parameters:
host- the network name of the hostport- the TCP communication port of the host
-
-
Method Details
-
getHost
Returns the network name of the host.- Returns:
- the name
-
getPort
public int getPort()Returns the TCP communication port of the host.- Returns:
- the port
-
getActionTimeout
public int getActionTimeout()Returns the timeout for individual send/receive actions.- Returns:
- the timeout in milliseconds
-
getKeepAlive
public int getKeepAlive()Returns the time to keep a connection alive.- Returns:
- the time in milliseconds
-
getApplicationId
Returns the unique application/client identifier.- Returns:
- the unique application/client identifier
-
getAutoApplicationId
public boolean getAutoApplicationId()Returns whether the application identification is expected to be unique or shall be made unique upon first connect. May be ignored if not applicable.- Returns:
true(default) for make unique,falseelse
-
getKeystoreKey
Returns the optional key to access the TLS keystore key to be obtained fromIdentityStore.- Returns:
- the (logical) key to access the keystore, may be null for none
-
getKeyAlias
Returns the alias of the key ingetKeystoreKey()to use.- Returns:
- the alias or null for none/first match
-
getAuthenticationKey
Returns theIdentityStorekey for the authentication, usually a password token.- Returns:
- the identity store key, may be empty or null
-
getHostnameVerification
public boolean getHostnameVerification()Returns whether TLS hostname verification shall be performed.- Returns:
falsefor no verification (default),trueelse
-
getMqttQoS
Returns the MQTT QoS level (may not apply to other protocols).- Returns:
- the QoS level
-
getCloseAction
Returns the close action.- Returns:
- the close action (default is
TransportParameter.CloseAction.UNSUBSCRIBE)
-