|
|||||||||
| 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 RemoteResource |
adminServer
|
protected 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 RemoteResource[] |
getControls(RemoteResource admin)
Get all the server's ControlResource. |
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. |
void |
save()
Save the configuration of the servers and the admin server. |
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 RemoteResource adminServer
protected RemoteResource[] ctrls
| Constructor Detail |
public JigKill(java.net.URL adminURL,
java.lang.String username,
java.lang.String password)
throws RemoteAccessException
adminURL - the admin server URLusername - the usernamepassword - the password| Method Detail |
protected static void usage()
EXIT_FAILUREmain(String[])
protected RemoteResource[] getControls(RemoteResource admin)
throws RemoteAccessException
admin - the admin server (a RemoteResource)
public void kill()
throws RemoteAccessException
save(),
stop()
public void stop()
throws RemoteAccessException
doLoadResource(String),
kill()
public void save()
throws RemoteAccessException
doLoadResource(String),
kill()
protected void doLoadResource(java.lang.String cmd)
throws RemoteAccessException
cmd - name of the resource to load.save(),
stop()public static void main(java.lang.String[] args)
EXIT_SUCCESS or
EXIT_FAILURE for the requested operation.args - program argumentsusage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||