public class ServerMain extends Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_ERROR |
static int |
MAIN_CLASS_NOT_FOUND |
static int |
NO_MAIN_METHOD |
static int |
NO_SERVER_ID |
static int |
OK |
static int |
REGISTRATION_FAILED |
static int |
UNKNOWN_ERROR |
Constructor and Description |
---|
ServerMain() |
Modifier and Type | Method and Description |
---|---|
static void |
logError(String msg)
Write error message to standard out and standard err.
|
static void |
logInformation(String msg)
Write information to standard out only.
|
static void |
logTerminal(String msg,
int code)
Write final message to log(s) and then terminate by calling
System.exit( code ).
|
static void |
main(String[] args) |
static String |
printResult(int result) |
public static final int OK
public static final int MAIN_CLASS_NOT_FOUND
public static final int NO_MAIN_METHOD
public static final int APPLICATION_ERROR
public static final int UNKNOWN_ERROR
public static final int NO_SERVER_ID
public static final int REGISTRATION_FAILED
public static String printResult(int result)
public static void logInformation(String msg)
public static void logError(String msg)
public static void logTerminal(String msg, int code)
public static void main(String[] args)
Copyright © 2017 JBoss by Red Hat. All rights reserved.