Skip to content

Commit

Permalink
remove deprecated runcommand and main-runner (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb authored Dec 12, 2023
1 parent 642fa24 commit 244e740
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 1,851 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,6 @@ or in offline mode:
./emissary config --place emissary.place.sample.ToLowerPlace --offline --detailed
```

#### Run

The Run command is a simple command to execute the main method of the given class. For example

```
./emissary run emissary.config.ConfigUtil <path_to_some_cfg_file>
```

If you need to pass flags to the main method, use *--* to stop parsing flags and simply pass them along.

```
./emissary run emissary.config.ExtractResource -- -o outputdir somefile
```

#### Server (Cluster)

Emissary is fun in standalone, but running cluster is more appropriate for real work. The way to run clustered
Expand Down
10 changes: 0 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<EMISSARY_VERSION>${project.version}</EMISSARY_VERSION>
<argLine />
<checkstyleFormatter>${project.basedir}/contrib/checkstyle.xml</checkstyleFormatter>
<dep.commons-cli.version>1.5.0</dep.commons-cli.version>
<dep.commons-codec.version>1.15</dep.commons-codec.version>
<dep.commons-collections.version>4.4</dep.commons-collections.version>
<dep.commons-compress.version>1.21</dep.commons-compress.version>
Expand Down Expand Up @@ -145,11 +144,6 @@
<artifactId>guava</artifactId>
<version>${dep.guava.version}</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>${dep.commons-cli.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
Expand Down Expand Up @@ -350,10 +344,6 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/emissary/Emissary.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import emissary.command.HelpCommand;
import emissary.command.PeersCommand;
import emissary.command.PoolCommand;
import emissary.command.RunCommand;
import emissary.command.ServerCommand;
import emissary.command.TopologyCommand;
import emissary.command.VersionCommand;
Expand Down Expand Up @@ -56,7 +55,7 @@ public class Emissary {
static {
List<Class<? extends EmissaryCommand>> cmds =
Arrays.asList(ServerCommand.class, HelpCommand.class, TopologyCommand.class, FeedCommand.class,
AgentsCommand.class, PoolCommand.class, VersionCommand.class, RunCommand.class, EnvCommand.class,
AgentsCommand.class, PoolCommand.class, VersionCommand.class, EnvCommand.class,
PeersCommand.class, ConfigCommand.class, DirectoryCommand.class);
Map<String, EmissaryCommand> staticCopy = new HashMap<>();
for (Class<? extends EmissaryCommand> clz : cmds) {
Expand Down
76 changes: 0 additions & 76 deletions src/main/java/emissary/command/RunCommand.java

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/java/emissary/id/SizeIdPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,4 @@ public String fileTypeBySize(int sz) {
return LABELS[LABELS.length - 1];
}

public static void main(String[] args) {
mainRunner(SizeIdPlace.class, args);
}
}
3 changes: 0 additions & 3 deletions src/main/java/emissary/id/UnixFilePlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,4 @@ public void process(final IBaseDataObject d) {
}
}

public static void main(final String[] args) {
mainRunner(UnixFilePlace.class.getName(), args);
}
}
6 changes: 0 additions & 6 deletions src/main/java/emissary/output/DropOffPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,4 @@ public void addFilter(final IDropOffFilter filter) {
this.outputFilters.add(filter);
}

/**
* Run the command line interface
*/
public static void main(final String[] argv) throws Exception {
mainRunner(DropOffPlace.class.getName(), argv);
}
}
4 changes: 0 additions & 4 deletions src/main/java/emissary/pickup/file/FilePickUpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,4 @@ protected void processDirectoryEntry(String root, String prefix, String caseid,
}
}

public static void main(String[] args) {
mainRunner(FilePickUpClient.class.getName(), args);
}

}
3 changes: 0 additions & 3 deletions src/main/java/emissary/pickup/file/FilePickUpPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,4 @@ public void startDataServer() {
}
}

public static void main(String[] args) {
mainRunner(FilePickUpPlace.class.getName(), args);
}
}
6 changes: 0 additions & 6 deletions src/main/java/emissary/place/CoordinationPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,4 @@ public List<IBaseDataObject> processHeavyDuty(IBaseDataObject d) throws Resource
return coordinate(d, true);
}

/**
* Test standalone main
*/
public static void main(String[] argv) {
mainRunner(CoordinationPlace.class.getName(), argv);
}
}
Loading

0 comments on commit 244e740

Please sign in to comment.