Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file added .mvn/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions examples/storm-hdfs-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void execute(Tuple tuple) {

@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// this bolt does not emit anything
// this bolt does not emit anything
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import org.apache.storm.hdfs.bolt.format.DefaultSequenceFormat;
import org.apache.storm.hdfs.bolt.format.FileNameFormat;
import org.apache.storm.hdfs.bolt.rotation.FileRotationPolicy;
import org.apache.storm.hdfs.bolt.rotation.FileSizeRotationPolicy;
import org.apache.storm.hdfs.bolt.rotation.FileSizeRotationPolicy.Units;
import org.apache.storm.hdfs.bolt.rotation.FileSizeRotationPolicy;
import org.apache.storm.hdfs.bolt.sync.CountSyncPolicy;
import org.apache.storm.hdfs.bolt.sync.SyncPolicy;
import org.apache.storm.hdfs.common.rotation.MoveFileAction;
Expand Down Expand Up @@ -189,7 +189,7 @@ public void execute(Tuple tuple) {

@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// this bolt does not emit anything
// this bolt does not emit anything
}

@Override
Expand Down
5 changes: 5 additions & 0 deletions examples/storm-jdbc-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
package org.apache.storm.jdbc.spout;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.Map;
import java.util.Random;

import org.apache.storm.spout.SpoutOutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.IRichSpout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.sql.Types;
import java.util.List;
import java.util.Map;

import org.apache.storm.Config;
import org.apache.storm.StormSubmitter;
import org.apache.storm.generated.StormTopology;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
package org.apache.storm.jdbc.topology;

import com.google.common.collect.Lists;

import java.sql.Types;
import java.util.List;

import org.apache.storm.generated.StormTopology;
import org.apache.storm.jdbc.bolt.JdbcInsertBolt;
import org.apache.storm.jdbc.bolt.JdbcLookupBolt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
package org.apache.storm.jdbc.topology;

import com.google.common.collect.Lists;

import java.sql.Types;

import org.apache.storm.generated.StormTopology;
import org.apache.storm.jdbc.common.Column;
import org.apache.storm.jdbc.mapper.SimpleJdbcLookupMapper;
Expand Down
5 changes: 5 additions & 0 deletions examples/storm-jms-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
</executions>

</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions examples/storm-kafka-client-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions examples/storm-loadgen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void sleepNano(long start, long sleepAmount) {
long diff = newEnd - start;
//There are some different levels of accuracy here, and we want to deal with all of them
if (diff <= 1_000) {
//We are done, nothing that short is going to work here
//We are done, nothing that short is going to work here
} else if (diff < NANO_IN_MS) {
//Busy wait...
long sum = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public Builder withGroupingType(Grouping grouping) {
} catch (Exception e) {
//ignored
}
//Fall through if not supported
//Fall through if not supported
default:
LOG.warn("{} is not supported for replay of a topology. Using SHUFFLE", thriftType);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private static class NoCloseOutputStream extends FilterOutputStream {

@Override
public void close() {
//NOOP on purpose
//NOOP on purpose
}
}

Expand Down Expand Up @@ -363,7 +363,7 @@ abstract static class FileReporter implements MetricResultsReporter {

@Override
public void start() {
//NOOP
//NOOP
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

package org.apache.storm.loadgen;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class LoadCompConfTest {
@Test
public void scaleParallel() {
Expand Down Expand Up @@ -54,4 +54,4 @@ public void scaleThroughput() {
//But throughput is the same
assertEquals(1000.0, scaled.getAllEmittedAggregate(), 0.001);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

package org.apache.storm.loadgen;

import static org.apache.storm.loadgen.LoadMetricsServer.convert;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.apache.storm.loadgen.LoadMetricsServer.convert;

public class LoadMetricsServerTest {
@Test
public void convertTest() {
Expand All @@ -34,4 +34,4 @@ public void convertTest() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

package org.apache.storm.loadgen;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class NormalDistStatsTest {
public static void assertNDSEquals(NormalDistStats a, NormalDistStats b) {
assertEquals(a.mean, b.mean, 0.0001, "mean");
Expand All @@ -40,4 +40,4 @@ public void scaleBy() {
assertNDSEquals(expectedHalf, orig.scaleBy(0.5));
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

package org.apache.storm.loadgen;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class OutputStreamTest {
@Test
public void scaleThroughput() {
Expand All @@ -34,4 +34,4 @@ public void scaleThroughput() {
assertEquals(scaled.rate.min, 199.0, 0.0001);
assertEquals(scaled.rate.max, 201.0, 0.0001);
}
}
}
5 changes: 5 additions & 0 deletions examples/storm-perf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
<mainClass>${storm.topology}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public void execute(Tuple tuple) {

@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// terminal — no output
// terminal — no output
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import org.apache.storm.generated.StormTopology;
import org.apache.storm.kafka.spout.FirstPollOffsetStrategy;
import org.apache.storm.kafka.spout.KafkaSpout;
import org.apache.storm.kafka.spout.KafkaSpoutConfig;
import org.apache.storm.kafka.spout.KafkaSpoutConfig.ProcessingGuarantee;
import org.apache.storm.kafka.spout.KafkaSpoutConfig;
import org.apache.storm.perf.bolt.DevNullBolt;
import org.apache.storm.perf.utils.Helper;
import org.apache.storm.topology.TopologyBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ public void run() {
private class Handler implements JCQueue.Consumer {
@Override
public void accept(Object event) {
// no-op
// no-op
}

@Override
public void flush() {
// no-op
// no-op
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void accept(Object event) {

@Override
public void flush() {
// no-op
// no-op
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void accept(Object event) {

@Override
public void flush() {
// no-op
// no-op
}
}
}
5 changes: 5 additions & 0 deletions examples/storm-redis-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<!--Note - the version/config would be inherited-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
package org.apache.storm.redis.topology;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.Map;
import java.util.Random;

import org.apache.storm.Config;
import org.apache.storm.StormSubmitter;
import org.apache.storm.redis.bolt.RedisLookupBolt;
Expand All @@ -39,7 +37,6 @@
import org.apache.storm.tuple.ITuple;
import org.apache.storm.tuple.Tuple;
import org.apache.storm.tuple.Values;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.util.Map;
import java.util.Random;

import org.apache.storm.Config;
import org.apache.storm.StormSubmitter;
import org.apache.storm.redis.bolt.RedisFilterBolt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
package org.apache.storm.redis.topology;

import com.google.common.collect.Maps;

import java.util.Map;

import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.BasicOutputCollector;
import org.apache.storm.topology.IBasicBolt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.Map;
import java.util.Random;
import java.util.UUID;

import org.apache.storm.spout.SpoutOutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.IRichSpout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
package org.apache.storm.redis.trident;

import java.util.Random;

import org.apache.storm.trident.operation.BaseFunction;
import org.apache.storm.trident.operation.TridentCollector;
import org.apache.storm.trident.tuple.TridentTuple;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Loading
Loading