openlsd.appli.admin
Class LSDAdmin

java.lang.Object
  extended by openlsd.appli.admin.LSDAdmin

public class LSDAdmin
extends java.lang.Object

Class to shutdown or other similar operations on one or many LSD server instance

Author:
Frederic Bregier LGPL

Method Summary
static long[] createMoreDir(LSDDbAdmin admin, long lid, long nb)
          Compute rank : start, end, nb in an array of long
static void main(java.lang.String[] args)
          Shutdown or other similar operations one or many LSD server instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Shutdown or other similar operations one or many LSD server instance.

Parameters:
args - with the config filename as first arg and commande as second args (-shutdown, -shutdownimmediate, -alterindex, -enable + lid, -disable + lid, -stopx, -startx, -restartx where x = (u)ser | (c)omp |(p)rotected, -createdir + lid + sid, -deletedir + lid + sid, -deleterecurdir + lid + sid, -createbetweendir + lid + sid1 + sid2 -createmoredir + lid + nb where lid must be ok and sid,sid1,sid2 must be ok for createdir and createbetweendir). If two more args are given, they are the hostname and port on which the operation will be applied, else all admin services will be used.

createMoreDir

public static long[] createMoreDir(LSDDbAdmin admin,
                                   long lid,
                                   long nb)
Compute rank : start, end, nb in an array of long

Parameters:
admin -
lid -
nb -
Returns:
the array of long containing start, end, nb