|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
util.SyslogAdmin
public class SyslogAdmin
A basic command-line interface to allow some client-access to the running
loggers. Note that any running PropertySyslog bound to the
registry may serve as the aim for this admin facility. Changing a logger's
properties will change this logger system-wide, i.e. for the entire VM the
PropertySyslog runs in.
This class provides only basic functionality for dealing with the system
loggers. The following command line switches are recognized:
PropertySyslog.scanProperties(java.util.Map) method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
protected static String |
FOOT
A footer message. |
static String |
NULLSWITCHES
The no-argument switches. |
static String |
ONESWITCHES
The one-argument switches. |
static String |
TWOSWITCHES
The two-argument switches. |
protected static Map<String,String> |
USE
A look-up table for detailed usage messages. |
| Constructor Summary | |
|---|---|
SyslogAdmin()
Constructs a new syslog admin utility. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Provides access to the syslog properties. |
boolean |
process(String[] arg)
Process the command line arguments. |
protected boolean |
processSwitches(SyslogAdjusting sys)
Parses through the command line switches known and performs the desired action on the SyslogAdjusting instance handed over. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NULLSWITCHES
public static final String ONESWITCHES
public static final String TWOSWITCHES
protected static final Map<String,String> USE
protected static final String FOOT
| Constructor Detail |
|---|
public SyslogAdmin()
process(java.lang.String[]) method
to process the arguments.
| Method Detail |
|---|
public boolean process(String[] arg)
throws ParseException
processSwitches method.
ParseExceptionprotected boolean processSwitches(SyslogAdjusting sys)
SyslogAdjusting instance handed over.
public static void main(String[] arg)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||