public class WorkerShell
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CommandSource |
commandSource |
protected fabric.worker.shell.CommandHandler |
defaultHandler |
protected java.util.Map<java.lang.String,fabric.worker.shell.CommandHandler> |
handlers |
protected java.io.PrintStream |
out |
protected Worker |
worker |
Constructor and Description |
---|
WorkerShell(Worker worker)
Creates an interactive shell for the given worker.
|
WorkerShell(Worker worker,
CommandSource commandSource) |
WorkerShell(Worker worker,
java.io.File in) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
protected final Worker worker
protected final CommandSource commandSource
protected final java.io.PrintStream out
protected final java.util.Map<java.lang.String,fabric.worker.shell.CommandHandler> handlers
protected final fabric.worker.shell.CommandHandler defaultHandler
public WorkerShell(Worker worker) throws java.io.IOException
java.io.IOException
public WorkerShell(Worker worker, java.io.File in) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public WorkerShell(Worker worker, CommandSource commandSource)