|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.clc.TrancheServerCommandLineClientItem
public abstract class TrancheServerCommandLineClientItem
Class that implements a Client Item for the Trancher server CLC.
| Constructor Summary | |
|---|---|
TrancheServerCommandLineClientItem(TrancheServer dfs,
TrancheServerCommandLineClient dfsclc,
java.lang.String name,
java.lang.String description)
Creates a new instance of the command line client item. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String description)
Add attribute and description to CLC. |
void |
addAttribute(java.lang.String name,
java.lang.String description,
boolean required)
Add attribute, description, and marking whether it is a required attribute for the CLC. |
int |
compareTo(java.lang.Object o)
Compare to TrancheServerCommandLineItems for equality. |
abstract void |
doAction(java.io.BufferedReader in,
java.io.PrintStream out)
Abstract class for doAction. |
TrancheServerCommandLineClientItemAttribute[] |
getAttributes()
Retrieve all attributes of the CLC. |
java.lang.String |
getDescription()
Retrieve description of CLC. |
java.lang.String |
getName()
Retrieve name of CLC. |
java.lang.String |
getParameter(java.lang.String name)
Retrieve parameter, asa string, given the parameter's name. |
TrancheServer |
getTrancheServer()
Retrieve DistributedFileSystem that is being handled by this CLC. |
TrancheServerCommandLineClient |
getTrancheServerCommandLineClient()
Retrieve the TracheServerCommandLineClient that is being handled by this CLC. |
void |
preDoAction(java.lang.String commandLine,
java.io.BufferedReader in,
java.io.PrintStream out)
Populate CLC with opetions from input buffer. |
static java.lang.String[] |
splitCommandLine(java.lang.String commandLine)
Split the string of command line parameters into a array of of strings for each option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrancheServerCommandLineClientItem(TrancheServer dfs,
TrancheServerCommandLineClient dfsclc,
java.lang.String name,
java.lang.String description)
dfs - The DistributedFileSystem implementation that will be
manipulated by this code.dfsclc - the command line client receivedname - the command line client item name receiveddescription - the command line client item description received| Method Detail |
|---|
public TrancheServer getTrancheServer()
public TrancheServerCommandLineClient getTrancheServerCommandLineClient()
public java.lang.String getName()
public java.lang.String getDescription()
public void preDoAction(java.lang.String commandLine,
java.io.BufferedReader in,
java.io.PrintStream out)
commandLine - the command line of parametersin - the input buffered readerout - the output print streampublic java.lang.String getParameter(java.lang.String name)
name - the attribute's name
public abstract void doAction(java.io.BufferedReader in,
java.io.PrintStream out)
in - the input buffered readerout - the output print stream
public void addAttribute(java.lang.String name,
java.lang.String description)
name - the name of the attribute to be addeddescription - the description of the atribute to be added
since 1.0
public void addAttribute(java.lang.String name,
java.lang.String description,
boolean required)
name - the name of the attribute to be addeddescription - the description of the attribute to be addedrequired - the required flagpublic TrancheServerCommandLineClientItemAttribute[] getAttributes()
public static final java.lang.String[] splitCommandLine(java.lang.String commandLine)
commandLine - the command line of parameters
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the object whose name is to be compared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||