Package com.alibaba.jstorm.callback.impl

Source Code of com.alibaba.jstorm.callback.impl.InactiveTransitionCallback

package com.alibaba.jstorm.callback.impl;

import com.alibaba.jstorm.callback.BaseCallback;
import com.alibaba.jstorm.cluster.StormStatus;
import com.alibaba.jstorm.daemon.nimbus.StatusType;

/**
*
* set Topology status as inactive
*
* Here just return inactive status Later, it will set inactive status to ZK
*/
public class InactiveTransitionCallback extends BaseCallback {

  @Override
  public <T> Object execute(T... args) {

    return new StormStatus(StatusType.inactive);
  }

}
TOP

Related Classes of com.alibaba.jstorm.callback.impl.InactiveTransitionCallback

TOP
Copyright © 2018 www.massapi.com. 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.