| java.lang.Object org.griphyn.vdl.toolkit.Toolkit org.griphyn.common.catalog.toolkit.RCClient
Constructor Summary | |
public | RCClient(String appName) ctor: Constructs a new instance of the commandline interface to
replica catalogs. |
Method Summary | |
void | close() Frees resources taken by the instance of the replica catalog. | void | connect() Connects the interface with the replica catalog implementation. | public Object | enter(String key, String value) Adds a preference to the instance preferences settings.
Parameters: key - is a key into the preference map. Parameters: value - is the new value to add. | protected LongOpt[] | generateValidOptions() Creates a set of GNU long options. | public static void | log(Level level, String msg) Logs messages from main() method. | public static void | main(String[] args) Manipulate entries in a given replica catalog implementation. | public void | parse(String filename) Consumes commands that control the replica management.
Parameters: filename - is the file to read from. | public void | parse(String filename, String command) Consumes commands that control the replica management. | public void | setLevel(Level level) Sets a logging level. | public void | showHelp() Prints internal command help. | public void | showUsage() Prints the usage string on stdout. | public int | work(List lines, String command) Works on the command contained within chunk of lines.
Parameters: lines - is a list of lines with each line being a list of wordsthat is split appropriately Parameters: command - the command to be invoked. | public int | work(List words) Works on the command contained within one line. |
RCClient | public RCClient(String appName)(Code) | | ctor: Constructs a new instance of the commandline interface to
replica catalogs.
Parameters: appName - is the name of to print in usage records. |
close | void close()(Code) | | Frees resources taken by the instance of the replica catalog. This
method is safe to be called on failed or already closed catalogs.
|
enter | public Object enter(String key, String value)(Code) | | Adds a preference to the instance preferences settings.
Parameters: key - is a key into the preference map. Parameters: value - is the new value to add. the previous value, or null if no such value exists. |
generateValidOptions | protected LongOpt[] generateValidOptions()(Code) | | Creates a set of GNU long options.
an initialized array with the options |
log | public static void log(Level level, String msg)(Code) | | Logs messages from main() method.
Parameters: level - is the log4j level to generate the log message for Parameters: msg - is the message itself. See Also: org.apache.log4j.Category.log(PriorityObject) |
main | public static void main(String[] args)(Code) | | Manipulate entries in a given replica catalog implementation.
Parameters: args - are the commandline arguments. |
parse | public void parse(String filename) throws IOException(Code) | | Consumes commands that control the replica management.
Parameters: filename - is the file to read from. If null, use stdin. exception: IOException - |
parse | public void parse(String filename, String command) throws IOException(Code) | | Consumes commands that control the replica management.
Parameters: filename - is the file to read from. Parameters: command - is the command that needs to be applied to the file contents exception: IOException - |
setLevel | public void setLevel(Level level)(Code) | | Sets a logging level.
Parameters: level - is the new level to achieve. |
showHelp | public void showHelp()(Code) | | Prints internal command help.
|
showUsage | public void showUsage()(Code) | | Prints the usage string on stdout.
|
work | public int work(List lines, String command)(Code) | | Works on the command contained within chunk of lines.
Parameters: lines - is a list of lines with each line being a list of wordsthat is split appropriately Parameters: command - the command to be invoked. number of entries affected, or -1 to stop processing. |
work | public int work(List words)(Code) | | Works on the command contained within one line.
Parameters: words - is a list of the arguments, split appropriately number of entries affected, or -1 to stop processing. |
|
|