public AlreadyAliveException deepCopy() { return new AlreadyAliveException(this); }
public AlreadyAliveException deepCopy() { return new AlreadyAliveException(this); }
/** * check whether the topology is bActive? * * @throws Exception */ public void checkTopologyActive(NimbusData nimbus, String topologyName, boolean bActive) throws Exception { if (isTopologyActive(nimbus.getStormClusterState(), topologyName) != bActive) { if (bActive) { throw new NotAliveException(topologyName + " is not alive"); } else { throw new AlreadyAliveException(topologyName + " is already alive"); } } }
/** * Performs a deep copy on <i>other</i>. */ public submitTopology_result(submitTopology_result other) { if (other.is_set_e()) { this.e = new AlreadyAliveException(other.e); } if (other.is_set_ite()) { this.ite = new InvalidTopologyException(other.ite); } }
/** * topologyǷ * * @param nimbus * @param topologyName * @param bActive * @throws NotAliveException * @throws AlreadyAliveException */ public void checkTopologyActive(NimbusData nimbus, String topologyName, boolean bActive) throws NotAliveException, AlreadyAliveException { if (isTopologyActive(nimbus.getStormClusterState(), topologyName) == !bActive) { if (bActive) { throw new NotAliveException(topologyName + " is not alive"); } else { throw new AlreadyAliveException(topologyName + " is already active"); } } }
for (String cachedTopologyId : pendingTopologies) { if (topologyPattern.matcher(cachedTopologyId).matches()) { throw new AlreadyAliveException(topologyName + " were submitted");
case 1: // E if (field.type == org.apache.thrift7.protocol.TType.STRUCT) { this.e = new AlreadyAliveException(); this.e.read(iprot); } else {
private void assertNotAlive() throws AlreadyAliveException { // only one topology is allowed to run. A topology is running if the topologyName is set. if (this.topologyName != null) { throw new AlreadyAliveException(); } } }
public AlreadyAliveException deepCopy() { return new AlreadyAliveException(this); }
public AlreadyAliveException deepCopy() { return new AlreadyAliveException(this); }
/** * Performs a deep copy on <i>other</i>. */ public submitTopologyWithOpts_result(submitTopologyWithOpts_result other) { if (other.is_set_e()) { this.e = new AlreadyAliveException(other.e); } if (other.is_set_ite()) { this.ite = new InvalidTopologyException(other.ite); } }
/** * Performs a deep copy on <i>other</i>. */ public submitTopology_result(submitTopology_result other) { if (other.is_set_e()) { this.e = new AlreadyAliveException(other.e); } if (other.is_set_ite()) { this.ite = new InvalidTopologyException(other.ite); } }
/** * check whether the topology is bActive? * * @param nimbus * @param topologyName * @param bActive * @throws Exception */ public void checkTopologyActive(NimbusData nimbus, String topologyName, boolean bActive) throws Exception { if (isTopologyActive(nimbus.getStormClusterState(), topologyName) != bActive) { if (bActive) { throw new NotAliveException(topologyName + " is not alive"); } else { throw new AlreadyAliveException(topologyName + " is already active"); } } }
/** * Submits a topology to run on the cluster. A topology runs forever or until * explicitly killed. * * @param name the name of the storm. * @param stormConfig the topology-specific configuration. See {@link Config}. * @param topology the processing to execute. * @throws AlreadyAliveException if a topology with this name is already running * @throws InvalidTopologyException if an invalid topology was submitted */ @SuppressWarnings("rawtypes") public static void submitTopology( String name, Map stormConfig, StormTopology topology) throws AlreadyAliveException, InvalidTopologyException { // First do topology config translation. Bolt and Spout config translation is handled // in their own DeclarerImpl classes. com.twitter.heron.api.Config heronConfig = ConfigUtils.translateConfig(stormConfig); // Now submit a heron topology try { HeronSubmitter.submitTopology(name, heronConfig, topology.getStormTopology()); } catch (com.twitter.heron.api.exception.AlreadyAliveException e) { throw new AlreadyAliveException(); } catch (com.twitter.heron.api.exception.InvalidTopologyException e) { throw new InvalidTopologyException(); } } }
for (String cachTopologyId : pendingTopologies) { if (cachTopologyId.contains(topologyName + "-")) throw new AlreadyAliveException( topologyName + " were submitted");
case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new AlreadyAliveException(); this.e.read(iprot); } else {
case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new AlreadyAliveException(); this.e.read(iprot); } else {