Search in sources :

Example 16 with TbNodeException

use of org.thingsboard.rule.engine.api.TbNodeException in project thingsboard by thingsboard.

the class TbMqttNode method init.

@Override
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
    try {
        this.mqttNodeConfiguration = TbNodeUtils.convert(configuration, TbMqttNodeConfiguration.class);
        this.mqttClient = initClient(ctx);
    } catch (Exception e) {
        throw new TbNodeException(e);
    }
}
Also used : TbNodeException(org.thingsboard.rule.engine.api.TbNodeException) TimeoutException(java.util.concurrent.TimeoutException) TbNodeException(org.thingsboard.rule.engine.api.TbNodeException) SSLException(javax.net.ssl.SSLException)

Aggregations

TbNodeException (org.thingsboard.rule.engine.api.TbNodeException)16 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)4 TbNodeConfiguration (org.thingsboard.rule.engine.api.TbNodeConfiguration)4 AWSCredentials (com.amazonaws.auth.AWSCredentials)2 AWSStaticCredentialsProvider (com.amazonaws.auth.AWSStaticCredentialsProvider)2 BasicAWSCredentials (com.amazonaws.auth.BasicAWSCredentials)2 IOException (java.io.IOException)2 SSLException (javax.net.ssl.SSLException)2 JsonElement (com.google.gson.JsonElement)1 JsonObject (com.google.gson.JsonObject)1 JsonParser (com.google.gson.JsonParser)1 ConnectionFactory (com.rabbitmq.client.ConnectionFactory)1 Properties (java.util.Properties)1 ExecutionException (java.util.concurrent.ExecutionException)1 TimeoutException (java.util.concurrent.TimeoutException)1 TimeoutException (org.apache.kafka.common.errors.TimeoutException)1 CertPemCredentials (org.thingsboard.rule.engine.credentials.CertPemCredentials)1 ClientCredentials (org.thingsboard.rule.engine.credentials.ClientCredentials)1 TbMqttNodeConfiguration (org.thingsboard.rule.engine.mqtt.TbMqttNodeConfiguration)1 EntityType (org.thingsboard.server.common.data.EntityType)1