|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.studio.apacheds.ApacheDsPluginUtils
public class ApacheDsPluginUtils
This class contains helpful methods.
| Field Summary | |
|---|---|
static java.lang.String |
LINE_SEPARATOR
The line separator |
| Constructor Summary | |
|---|---|
ApacheDsPluginUtils()
|
|
| Method Summary | |
|---|---|
static void |
createNewServerFolder(java.lang.String id)
Creates a new server folder for the given id. |
static void |
createServersLog4jPropertiesFile(java.io.OutputStream os,
int port,
java.lang.String logsLevel,
java.lang.String logsPattern)
Create the log4j.properties file for the server. |
static java.lang.String[] |
getApacheDsLibraries(Server server)
Gets an array containing the names of the Apache DS libraries, according to the given server. |
static org.eclipse.core.runtime.IPath |
getApacheDsLibrariesFolder(Server server)
Get the path to the Apache DS libraries folder. |
static org.eclipse.core.runtime.IPath |
getApacheDsServersFolder()
Get the path to the Apache DS servers folder. |
static ServerConfiguration |
getServerConfiguration(Server server)
Gets the server configuration. |
static java.lang.String |
getServerLogsLevel()
Gets the server logs level. |
static java.lang.String |
getServerLogsPattern()
Gets the server logs pattern. |
static void |
reportError(java.lang.String message)
Reports an error. |
static void |
verifyLibrariesFolder(Server server)
Verifies that the libraries folder exists and contains the jar files needed to launch the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LINE_SEPARATOR
| Constructor Detail |
|---|
public ApacheDsPluginUtils()
| Method Detail |
|---|
public static void verifyLibrariesFolder(Server server)
server - the serverpublic static java.lang.String[] getApacheDsLibraries(Server server)
server - the server
public static org.eclipse.core.runtime.IPath getApacheDsLibrariesFolder(Server server)
server - the server
public static org.eclipse.core.runtime.IPath getApacheDsServersFolder()
public static void createNewServerFolder(java.lang.String id)
id - the id of the server
public static void createServersLog4jPropertiesFile(java.io.OutputStream os,
int port,
java.lang.String logsLevel,
java.lang.String logsPattern)
throws java.io.IOException
os - the OutputStream to write toport - the portlogsLevel - the logs levellogsLevel - the logs pattern
java.io.IOException - if an error occurs when writing to the filepublic static java.lang.String getServerLogsLevel()
public static java.lang.String getServerLogsPattern()
public static void reportError(java.lang.String message)
message - the message
public static ServerConfiguration getServerConfiguration(Server server)
throws ServerXmlIOException,
java.io.IOException
server - the server
ServerXmlIOException
ServerXmlIOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||