===== Server control =====
LSC 1.3+ can be launched as a server which pull updates. You can control this server and request some operation through a JMX agent.
==== Activating JMX on LSC startup ====
To be able to use this client, you need to launch LSC with the following JVM arguments :
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
But take care that this installation is highly unsecured ! Please look at the "Securing JMX Access" section to implement a correct security configuration.
==== Control LSC ====
Then you need to launch org.lsc.jmx.LscAgent with the following parameters :
* -h : hostname to connect to, localhost if you launch LSC and its agent on the same computer
* -p : tcp port to connect to, here 1099
You can get the list of available tasks through :
* -l : List the available tasks
Or get an asynchronous task status :
* -s : Get a task status
Then you can add the following parameters to launch start an asynchronous task :
* -a : start the taskname
Or stop it :
* -o : stop the taskname
If you want to force a object synchronization for a synchronous task, add :
* -a : start the taskname
* -i : specify the main object identifier
* -t : Specify the attributes pivot to synchronize
==== Securing JMX access ====
To be completed by implemeting following advice : http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#remote