Package fr.dyade.aaa.agent
Class AdminProxy
- java.lang.Object
-
- fr.dyade.aaa.agent.AdminProxy
-
@Deprecated public class AdminProxy extends Object
Deprecated.only used in testsAAdminProxyservice provides a TCP service allowing remote administration of agent servers.The
AdminProxyservice can be configured by the way of service argument:- the TCP port number, by default this port is 8091.
- the number of monitor needed to handled requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classAdminProxy.AdminMonitorDeprecated.
-
Field Summary
Fields Modifier and Type Field Description (package private) static StringADD_SERVICEDeprecated.static StringCONFIGDeprecated.static StringCRASH_SERVERDeprecated.(package private) static booleandebugDeprecated.(package private) static StringDUMPDeprecated.(package private) static StringGCDeprecated.(package private) static StringHELPDeprecated.(package private) static StringLIST_MCONSDeprecated.(package private) static StringLIST_SERVICEDeprecated.(package private) ServerSocketlistenDeprecated.static StringLISTENPORTDeprecated.Property that define the TCP listen portstatic StringLOGDeprecated.(package private) AdminProxy.AdminMonitor[]monitorsDeprecated.private static intnbmDeprecated.The number of monitors.static StringNBMONITORDeprecated.Property that define the number of monitor(package private) static StringNONEDeprecated.static StringPINGDeprecated.private static intportDeprecated.The TCP listen port, by default 8091(package private) static AdminProxyproxyDeprecated.(package private) static StringREMOVE_SERVICEDeprecated.(package private) static StringSTART_MCONSDeprecated.(package private) static StringSTOP_MCONSDeprecated.static StringSTOP_SERVERDeprecated.(package private) static StringTHREADSDeprecated.(package private) static LoggerxlogmonDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateAdminProxy()Deprecated.Creates an AdminProxy service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidinit(String args, boolean firstTime)Deprecated.Initializes the package as a well known service.static voidstart()Deprecated.static voidstopService()Deprecated.StringtoString()Deprecated.Provides a string image for this object.
-
-
-
Field Detail
-
xlogmon
static final Logger xlogmon
Deprecated.
-
proxy
static AdminProxy proxy
Deprecated.
-
debug
static final boolean debug
Deprecated.- See Also:
- Constant Field Values
-
LISTENPORT
public static final String LISTENPORT
Deprecated.Property that define the TCP listen port- See Also:
- Constant Field Values
-
port
private static int port
Deprecated.The TCP listen port, by default 8091
-
NBMONITOR
public static final String NBMONITOR
Deprecated.Property that define the number of monitor- See Also:
- Constant Field Values
-
nbm
private static int nbm
Deprecated.The number of monitors.
-
monitors
AdminProxy.AdminMonitor[] monitors
Deprecated.
-
listen
ServerSocket listen
Deprecated.
-
HELP
static final String HELP
Deprecated.- See Also:
- Constant Field Values
-
NONE
static final String NONE
Deprecated.- See Also:
- Constant Field Values
-
STOP_SERVER
public static final String STOP_SERVER
Deprecated.- See Also:
- Constant Field Values
-
CRASH_SERVER
public static final String CRASH_SERVER
Deprecated.- See Also:
- Constant Field Values
-
PING
public static final String PING
Deprecated.- See Also:
- Constant Field Values
-
CONFIG
public static final String CONFIG
Deprecated.- See Also:
- Constant Field Values
-
GC
static final String GC
Deprecated.- See Also:
- Constant Field Values
-
THREADS
static final String THREADS
Deprecated.- See Also:
- Constant Field Values
-
LIST_MCONS
static final String LIST_MCONS
Deprecated.- See Also:
- Constant Field Values
-
START_MCONS
static final String START_MCONS
Deprecated.- See Also:
- Constant Field Values
-
STOP_MCONS
static final String STOP_MCONS
Deprecated.- See Also:
- Constant Field Values
-
LIST_SERVICE
static final String LIST_SERVICE
Deprecated.- See Also:
- Constant Field Values
-
ADD_SERVICE
static final String ADD_SERVICE
Deprecated.- See Also:
- Constant Field Values
-
REMOVE_SERVICE
static final String REMOVE_SERVICE
Deprecated.- See Also:
- Constant Field Values
-
DUMP
static final String DUMP
Deprecated.- See Also:
- Constant Field Values
-
LOG
public static final String LOG
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdminProxy
private AdminProxy() throws IOExceptionDeprecated.Creates an AdminProxy service.- Throws:
IOException- a fatal error occurs.
-
-
Method Detail
-
init
public static void init(String args, boolean firstTime) throws Exception
Deprecated.Initializes the package as a well known service.Creates a
AdminProxyproxy listen on .- Parameters:
args- parameters from the configuration filefirstTime-truewhen service starts anew- Throws:
Exception- a fatal error occurs.
-
start
public static void start()
Deprecated.
-
stopService
public static void stopService()
Deprecated.
-
-