|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.tools.beluga.Beluga
public class Beluga
The LDAP server main class.
Field Summary | |
---|---|
static String |
PARAM_ADMIN_PORT
|
static String |
PARAM_DIRECTORY_DEFINITION
|
static String |
PARAM_INTERCEPTORS
|
static String |
PARAM_LDAP_PORT
|
static String |
PARAM_SERVER_DEFINITION
|
static String |
PROG_VERSION
|
Constructor Summary | |
---|---|
Beluga()
Initialize the new instance with default values. |
Method Summary | |
---|---|
void |
execute(org.pf.text.CommandLineArguments args,
boolean runsEmbedded)
Start the LDAP server and - if rundEmbedded is false - its associated admin server. |
static Beluga |
launch()
Launches an LDAP server instance listening to the default port 389. |
static Beluga |
launch(int dirPort)
Launches an LDAP server instance listening to the given port. |
static Beluga |
launch(String dirDefinition)
Launches an LDAP server instance listening to the given default port 389 and containing the data specified by the definition file given in by parameter dirDefinition. |
static Beluga |
launch(String dirDefinition,
int dirPort)
Launches an LDAP server instance listening to the given port and containing the data specified by the definition file given in by parameter dirDefinition. |
static void |
main(String[] args)
|
void |
shutdown()
Shutdown all servers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROG_VERSION
public static final String PARAM_SERVER_DEFINITION
public static final String PARAM_DIRECTORY_DEFINITION
public static final String PARAM_INTERCEPTORS
public static final String PARAM_LDAP_PORT
public static final String PARAM_ADMIN_PORT
Constructor Detail |
---|
public Beluga()
Method Detail |
---|
public static void main(String[] args)
public static Beluga launch()
This method is supposed to be used by applications that want to use the LDAP server embedded.
public static Beluga launch(int dirPort)
This method is supposed to be used by applications that want to use the LDAP server embedded.
dirPort
- The port of the LDAP serverpublic static Beluga launch(String dirDefinition)
This method is supposed to be used by applications that want to use the LDAP server embedded.
dirDefinition
- The path of the XML file that contains the definition of
files to be loaded into the LDAP server.public static Beluga launch(String dirDefinition, int dirPort)
This method is supposed to be used by applications that want to use the LDAP server embedded.
dirDefinition
- The path of the XML file that contains the definition of
files to be loaded into the LDAP server.dirPort
- The port of the LDAP server
IllegalArgumentException
- If the given port is out of allowed port range (1-65535)public void execute(org.pf.text.CommandLineArguments args, boolean runsEmbedded)
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |