Skip to content

Commit

Permalink
remove deprecated runcommand and main-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Sep 18, 2023
1 parent 0f11c9e commit e554909
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 1,827 deletions.
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.StopCommand;
import emissary.command.TopologyCommand;
Expand Down Expand Up @@ -58,7 +57,7 @@ public class Emissary {
static {
List<Class<? extends EmissaryCommand>> cmds =
Arrays.asList(ServerCommand.class, HelpCommand.class, WhatCommand.class, TopologyCommand.class, FeedCommand.class,
AgentsCommand.class, PoolCommand.class, VersionCommand.class, RunCommand.class, EnvCommand.class, StopCommand.class,
AgentsCommand.class, PoolCommand.class, VersionCommand.class, EnvCommand.class, StopCommand.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 @@ -541,10 +541,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 e554909

Please sign in to comment.