Class MessageBroker
- java.lang.Object
-
- com.smartgridready.driver.api.messaging.model.MessageBroker
-
public class MessageBroker extends java.lang.Object
Implements a message broker configuration.
-
-
Constructor Summary
Constructors Constructor Description MessageBroker(java.lang.String host, java.lang.String port, boolean tls, boolean tlsVerifyCertificate)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
Gets the host address.java.lang.String
getPort()
Gets the TCP port.boolean
isTls()
Tells if TLS is used.boolean
isTlsVerifyCertificate()
Tells if TLS certificate verification is enabled.
-
-
-
Constructor Detail
-
MessageBroker
public MessageBroker(java.lang.String host, java.lang.String port, boolean tls, boolean tlsVerifyCertificate)
Construct.- Parameters:
host
- the message broker host addressport
- the message broker TCP porttls
- use TLS when truetlsVerifyCertificate
- verifies TLS certificate when true, otherwise not
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Gets the host address.- Returns:
- a string
-
getPort
public java.lang.String getPort()
Gets the TCP port.- Returns:
- a string with numeric value
-
isTls
public boolean isTls()
Tells if TLS is used.- Returns:
- true if used, false otherwise
-
isTlsVerifyCertificate
public boolean isTlsVerifyCertificate()
Tells if TLS certificate verification is enabled.- Returns:
- true if verification enabled, false otherwise
-
-