openlsd.appli.admin.LSDAdmin Class Reference

Collaboration diagram for openlsd.appli.admin.LSDAdmin:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class to shutdown or other similar operations on one or many LSD server instance
Author:
Frederic Bregier LGPL

Static Public Member Functions

static void main (String[] args)
static long[] createMoreDir (LSDDbAdmin admin, long lid, long nb)

Private Member Functions

 LSDAdmin (LSDLoadConfig llc)
boolean adminLSD ()

Private Attributes

LSDDbAdmin admin = null
String option = null
long lid = LSDConstants.invalide_idx
long sid = LSDConstants.invalide_idx
long lastsid = LSDConstants.invalide_idx
LSDDbIpPort ipportAdmin = null
LSDClientAdmin lca = null

Constructor & Destructor Documentation

openlsd.appli.admin.LSDAdmin.LSDAdmin ( LSDLoadConfig  llc  )  [private]

Create a new LSDAdmin object

Parameters:
llc 


Member Function Documentation

static void openlsd.appli.admin.LSDAdmin.main ( String[]  args  )  [static]

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.

boolean openlsd.appli.admin.LSDAdmin.adminLSD (  )  [private]

Shutdown or similar operations on the LSD Server associated with the current ipportAdmin

Returns:
True if OK, else False

static long [] openlsd.appli.admin.LSDAdmin.createMoreDir ( LSDDbAdmin  admin,
long  lid,
long  nb 
) [static]

Compute rank : start, end, nb in an array of long

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


Member Data Documentation

DB Admin object

String openlsd.appli.admin.LSDAdmin.option = null [private]

Option

Legacy ID

Storage ID

Last Storage ID

IpPort Admin Object

Admin Client


The documentation for this class was generated from the following file: