Package com.alibaba.jstorm.callback

Examples of com.alibaba.jstorm.callback.ClusterStateCallback


    supervisors_callback = new AtomicReference<RunnableCallback>(null);
    assignments_callback = new AtomicReference<RunnableCallback>(null);
    storm_base_callback = new ConcurrentHashMap<String, RunnableCallback>();
    master_callback = new AtomicReference<RunnableCallback>(null);

    state_id = cluster_state.register(new ClusterStateCallback() {

      public <T> Object execute(T... args) {
        if (args == null) {
          LOG.warn("Input args is null");
          return null;
View Full Code Here


          }

          if (!type.equals(EventType.None)) {
            for (Entry<UUID, ClusterStateCallback> e : callbacks
                .entrySet()) {
              ClusterStateCallback fn = e.getValue();
              fn.execute(type, path);
            }
          }
        }
      }
    };
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.callback.ClusterStateCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.