Class MqttClientConfig

java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.mqtt.MqttClientConfig
All Implemented Interfaces:
JExpressConfig

public abstract class MqttClientConfig extends BootConfig
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

  • Constructor Details

    • MqttClientConfig

      protected MqttClientConfig()
  • Method Details

    • main

      public static void main(String[] args)
    • generateTemplate_keystore

      protected void generateTemplate_keystore(StringBuilder sb)
    • generateTemplate_truststore

      protected void generateTemplate_truststore(StringBuilder sb)
    • preLoad

      protected void preLoad(File cfgFile, boolean isReal, ConfigUtil helper, Properties props)
      Overrides:
      preLoad in class BootConfig
    • loadCustomizedConfigs

      protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception
      Specified by:
      loadCustomizedConfigs in class BootConfig
      Throws:
      Exception
    • shutdown

      public void shutdown()
    • build

      public org.eclipse.paho.mqttv5.client.MqttAsyncClient build() throws org.eclipse.paho.mqttv5.common.MqttException
      Throws:
      org.eclipse.paho.mqttv5.common.MqttException
    • build

      public org.eclipse.paho.mqttv5.client.MqttAsyncClient build(org.eclipse.paho.mqttv5.client.MqttClientPersistence persistence, org.eclipse.paho.mqttv5.client.MqttPingSender pingSender, ScheduledExecutorService executorService) throws org.eclipse.paho.mqttv5.common.MqttException
      Throws:
      org.eclipse.paho.mqttv5.common.MqttException
    • buildConnectionOptions

      public org.eclipse.paho.mqttv5.client.MqttConnectionOptions buildConnectionOptions()
    • buildConnectionOptions

      public org.eclipse.paho.mqttv5.client.MqttConnectionOptions buildConnectionOptions(String username, String password)
    • buildConnectionOptions

      public org.eclipse.paho.mqttv5.client.MqttConnectionOptions buildConnectionOptions(String username, String password, SocketFactory socketFactory)
    • shutdown

      public void shutdown(org.eclipse.paho.mqttv5.client.MqttAsyncClient asyncClient) throws org.eclipse.paho.mqttv5.common.MqttException
      Throws:
      org.eclipse.paho.mqttv5.common.MqttException
    • getServerURI

      public String getServerURI()
    • getSslProtocol

      public String getSslProtocol()
    • getKmf

      public KeyManagerFactory getKmf()
    • getTmf

      public TrustManagerFactory getTmf()
    • isVerifyHostname

      public boolean isVerifyHostname()
    • getSocketFactory

      public SocketFactory getSocketFactory()
    • getClientId

      public String getClientId()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • getDefaultQoS

      public int getDefaultQoS()