public class AdminProxy extends Object
AdminProxy
service provides a TCP service allowing remote
administration of agent servers.
The AdminProxy
service can be configured by the way of
service argument:
Modifier and Type | Class and Description |
---|---|
(package private) class |
AdminProxy.AdminMonitor |
Modifier and Type | Field and Description |
---|---|
(package private) static String |
ADD_SERVICE |
static String |
CONFIG |
static String |
CRASH_SERVER |
static boolean |
debug |
(package private) static String |
DUMP |
(package private) static String |
GC |
(package private) static String |
GET_VARIABLE |
(package private) static String |
HELP |
(package private) static String |
LIST_MCONS |
(package private) static String |
LIST_SERVICE |
(package private) ServerSocket |
listen |
static String |
LISTENPORT
Property that define the TCP listen port
|
static String |
LOG |
(package private) AdminProxy.AdminMonitor[] |
monitors
Hashtable that contain all
Process of running AgentServer |
private static int |
nbm
The number of monitors.
|
static String |
NBMONITOR
Property that define the number of monitor
|
(package private) static String |
NONE |
static String |
PING |
private static int |
port
The TCP listen port, by default 8091
|
(package private) static AdminProxy |
proxy |
(package private) static String |
REMOVE_SERVICE |
(package private) static String |
SET_VARIABLE |
(package private) static String |
START_MCONS |
(package private) static String |
STOP_MCONS |
static String |
STOP_SERVER |
(package private) static String |
THREADS |
(package private) static org.objectweb.util.monolog.api.Logger |
xlogmon |
Modifier | Constructor and Description |
---|---|
private |
AdminProxy()
Creates an AdminProxy service.
|
Modifier and Type | Method and Description |
---|---|
static void |
init(String args,
boolean firstTime)
Initializes the package as a well known service.
|
static void |
start() |
static void |
stopService() |
String |
toString()
Provides a string image for this object.
|
static AdminProxy proxy
public static boolean debug
public static final String LISTENPORT
private static int port
private static int nbm
public static final String NBMONITOR
AdminProxy.AdminMonitor[] monitors
Process
of running AgentServerServerSocket listen
static org.objectweb.util.monolog.api.Logger xlogmon
static final String HELP
static final String NONE
public static final String STOP_SERVER
public static final String CRASH_SERVER
public static final String PING
public static final String CONFIG
static final String SET_VARIABLE
static final String GET_VARIABLE
static final String GC
static final String THREADS
static final String LIST_MCONS
static final String START_MCONS
static final String STOP_MCONS
static final String LIST_SERVICE
static final String ADD_SERVICE
static final String REMOVE_SERVICE
static final String DUMP
public static final String LOG
private AdminProxy() throws IOException
IOException
- a fatal error occurs.public static void init(String args, boolean firstTime) throws Exception
Creates a AdminProxy
proxy listen on .
args
- parameters from the configuration filefirstTime
- true
when service starts anewException
- a fatal error occurs.public static void start()
public static void stopService()
Copyright © 2021 ScalAgent D.T.. All rights reserved.