|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.jigsaw.admin.JigKill
Simple class used to save and/or kill Jigsaw.
-u username
User name (defaults to "admin")
-p password
Password (required)
--username username
Same as -u
--password password
Same as -p
--save
Save configuration of all servers--stop
Stop all servers--ping
check if servers are reachable
*.jar
file is in CLASSPATH,
e.g. export CLASSPATH=~/Jigsaw/classes/jigsaw.zip:${CLASSPATH}
)java org.w3c.jigsaw.admin.JigKill -u admin -p for#8pj http://gyros.informatik.med.uni-giessen.de:8009/
java org.w3c.jigsaw.admin.JigKill -u admin -p for#8pj --save --stop http://gyros.informatik.med.uni-giessen.de:8009/
java org.w3c.jigsaw.admin.JigKill -u admin -p for#8pj --stop http://gyros.informatik.med.uni-giessen.de:8009/
java org.w3c.jigsaw.admin.JigKill -u admin -p for#8pj --save http://gyros.informatik.med.uni-giessen.de:8009/
java org.w3c.jigsaw.admin.JigKill -u admin -p for#8pj --ping http://gyros.informatik.med.uni-giessen.de:8009/
--stop
option: Simply stop jigsaw quick&savely.--save
option: Snapshot the current config (something for a daily crontab job).--ping
option to see if the server is still running (usefull for scripts).--username
and --password
options as aliases for -u
and -p
.-u
option now defaults to "admin", as jigsaw's default config does.
--restart
option.
Field Summary | |
protected org.w3c.jigsaw.admin.RemoteResource |
adminServer
|
protected org.w3c.jigsaw.admin.RemoteResource[] |
ctrls
|
protected static int |
EXIT_FAILURE
Exit value of the JVM on failure of the requested operation. |
protected static int |
EXIT_SUCCESS
Exit value of the JVM on success of the requested operation. |
Constructor Summary | |
JigKill(java.net.URL adminURL,
java.lang.String username,
java.lang.String password)
Contructor. |
Method Summary | |
protected void |
doLoadResource(java.lang.String cmd)
Send a "command" to all servers and the admin server. |
protected org.w3c.jigsaw.admin.RemoteResource[] |
getControls(org.w3c.jigsaw.admin.RemoteResource admin)
Get all the server's ControlResource. |
protected void |
kill()
Save the configuration of the servers and the admin server and then kill all servers (including the admin server). |
static void |
main(java.lang.String[] args)
Main program entry. |
protected void |
save()
Save the configuration of the servers and the admin server. |
protected void |
stop()
Stop the servers and the admin server. |
protected static void |
usage()
Print usage description and exit with exit status EXIT_FAILURE |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final int EXIT_SUCCESS
protected static final int EXIT_FAILURE
protected org.w3c.jigsaw.admin.RemoteResource adminServer
protected org.w3c.jigsaw.admin.RemoteResource[] ctrls
Constructor Detail |
public JigKill(java.net.URL adminURL, java.lang.String username, java.lang.String password) throws org.w3c.jigsaw.admin.RemoteAccessException
adminURL
- the admin server URLusername
- the usernamepassword
- the passwordMethod Detail |
protected static void usage()
main(String[])
protected org.w3c.jigsaw.admin.RemoteResource[] getControls(org.w3c.jigsaw.admin.RemoteResource admin) throws org.w3c.jigsaw.admin.RemoteAccessException
admin
- the admin server (a RemoteResource)protected void kill() throws org.w3c.jigsaw.admin.RemoteAccessException
save()
,
stop()
protected void stop() throws org.w3c.jigsaw.admin.RemoteAccessException
doLoadResource(String)
,
kill()
protected void save() throws org.w3c.jigsaw.admin.RemoteAccessException
doLoadResource(String)
,
kill()
protected void doLoadResource(java.lang.String cmd) throws org.w3c.jigsaw.admin.RemoteAccessException
cmd
- name of the resource to load.save()
,
stop()
public static void main(java.lang.String[] args)
args
- program argumentsusage()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |