public class ZeroconfJoramServer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
A3_SERVERS_XML |
static String |
ADMIN_HOST_NAME |
static String |
ADMIN_PORT |
static String |
BASE_DIR_PATH |
private static File |
baseDir |
private static String |
baseDirPath |
private static String |
hostName |
static String |
JORAM_SERVER_DATA |
static String |
ROOT_USER_NAME |
static String |
ROOT_USER_PWD |
static String |
SERVER_ID |
private static String |
serverName |
Constructor and Description |
---|
ZeroconfJoramServer() |
Modifier and Type | Method and Description |
---|---|
private static void |
adminConnect() |
static void |
destroy()
Destroy the created server.
|
private static void |
init() |
private static int |
loadServerId()
Try to get a previously created configuration.
|
static void |
main(String[] args)
Starts a Joram server without any configuration.
|
private static int |
newServerId()
Allocate a new identifier for the created server.
|
private static void |
saveServerId(int sid)
Save the unique identifier of the created server for future use.
|
private static void |
startServer(int serverId) |
static void |
stop()
Stop the created server.
|
public static final String BASE_DIR_PATH
public static final String ADMIN_HOST_NAME
public static final String ADMIN_PORT
public static final String ROOT_USER_NAME
public static final String ROOT_USER_PWD
public static final String SERVER_ID
public static final String JORAM_SERVER_DATA
public static final String A3_SERVERS_XML
private static String baseDirPath
private static File baseDir
private static String hostName
private static String serverName
public static void main(String[] args) throws Exception
Exception
private static int newServerId() throws Exception
Exception
private static void saveServerId(int sid) throws IOException
sid
- The unique identifier of the created server.IOException
- An error occurs during writing.private static int loadServerId() throws IOException
IOException
- An error occurs during reading.public static void stop()
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.