public class UberjarMain
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
UberjarMain.Action |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private static java.lang.String |
PROPERTY_SHUTDOWN_PORT
The key of the property use to specify the shutdown port
|
private ApacheDsService |
service
The ApacheDS service
|
| Constructor and Description |
|---|
UberjarMain() |
| Modifier and Type | Method and Description |
|---|---|
private int |
getShutdownPort() |
static void |
main(java.lang.String[] args)
Takes a single argument, the path to the installation home, which
contains the configuration to load with server startup settings.
|
private static java.lang.String |
readShutdownPassword(InstanceLayout layout) |
private static int |
readShutdownPort(InstanceLayout layout) |
void |
start(java.lang.String... args) |
private void |
startShutdownListener(InstanceLayout layout)
Starts a thread that creates a ServerSocket which listens for shutdown command.
|
void |
stop() |
private static java.lang.String |
writeShutdownPassword(InstanceLayout layout,
java.lang.String password) |
private static int |
writeShutdownPort(InstanceLayout layout,
int portNumber) |
private static final org.slf4j.Logger LOG
private static final java.lang.String PROPERTY_SHUTDOWN_PORT
private ApacheDsService service
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - the argumentsjava.lang.Exceptionprivate int getShutdownPort()
private static int readShutdownPort(InstanceLayout layout) throws java.io.IOException
java.io.IOExceptionprivate static java.lang.String readShutdownPassword(InstanceLayout layout) throws java.io.IOException
java.io.IOExceptionpublic void start(java.lang.String... args)
public void stop()
private void startShutdownListener(InstanceLayout layout) throws java.io.IOException
layout - the InstanceLayoutjava.io.IOExceptionprivate static java.lang.String writeShutdownPassword(InstanceLayout layout, java.lang.String password) throws java.io.IOException
java.io.IOExceptionprivate static int writeShutdownPort(InstanceLayout layout, int portNumber) throws java.io.IOException
java.io.IOException