|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.client.AdminClient
An admin client object that can be used both from the command line
and programmatically. The admin client supports simple logging that
allows the output of its operations to be inspected in environments
where System.out
and System.err
should
not be used.
Field Summary | |
protected java.io.PrintWriter |
_log
|
Constructor Summary | |
AdminClient()
Construct an admin client w/o a logger |
|
AdminClient(java.io.OutputStream out)
Construct an admin client with a logger |
|
AdminClient(java.io.PrintWriter log)
Construct an admin client with a logger |
Method Summary | |
protected void |
log(java.lang.String msg)
Logs a message if a logger has been provided |
static void |
main(java.lang.String[] args)
Creates in instance of AdminClient and
invokes process(args) . |
java.lang.String |
process(java.lang.String[] args)
Processes a set of administration commands. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintWriter _log
Constructor Detail |
public AdminClient()
public AdminClient(java.io.PrintWriter log)
public AdminClient(java.io.OutputStream out)
Method Detail |
protected void log(java.lang.String msg) throws java.io.IOException
public java.lang.String process(java.lang.String[] args) throws java.lang.Exception
Processes a set of administration commands.
The following commands are available:
-lurl
sets the AxisServlet URL-hhostName
sets the AxisServlet host-pportNumber
sets the AxisServlet port-sservletPath
sets the path to the
AxisServlet-ffileName
specifies that a simple file
protocol should be used-uusername
sets the username-ppassword
sets the password-d
sets the debug flag (for instance, -ddd would
set it to 3)-tname
sets the transport chain touselist
will list the currently deployed servicesquit
will quit (???)passwd value
changes the admin passwordxmlConfigFile
deploys or undeploys
Axis components and web servicesIf -l
or -h -p -s
are not set, the
AdminClient will invoke
http://localhost:8080/axis/servlet/AxisServlet
.
args
- Commands to processjava.lang.Exception
- Could be an IO exception, an AxisFault or something elsepublic static void main(java.lang.String[] args)
AdminClient
and
invokes process(args)
.
Diagnostic output goes to System.out
.
args
- Commands to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |