Search in sources :

Example 1 with ClusterEventMsg

use of org.thingsboard.server.common.msg.cluster.ClusterEventMsg in project thingsboard by thingsboard.

the class DefaultActorService method onServerRemoved.

@Override
public void onServerRemoved(ServerInstance server) {
    log.trace("Processing onServerRemoved msg: {}", server);
    broadcast(new ClusterEventMsg(server.getServerAddress(), false));
}
Also used : ClusterEventMsg(org.thingsboard.server.common.msg.cluster.ClusterEventMsg)

Example 2 with ClusterEventMsg

use of org.thingsboard.server.common.msg.cluster.ClusterEventMsg in project thingsboard by thingsboard.

the class DefaultActorService method onServerAdded.

@Override
public void onServerAdded(ServerInstance server) {
    log.trace("Processing onServerAdded msg: {}", server);
    broadcast(new ClusterEventMsg(server.getServerAddress(), true));
}
Also used : ClusterEventMsg(org.thingsboard.server.common.msg.cluster.ClusterEventMsg)

Aggregations

ClusterEventMsg (org.thingsboard.server.common.msg.cluster.ClusterEventMsg)2