fr.dyade.aaa.agent
Class AdminProxy

java.lang.Object
  extended by fr.dyade.aaa.agent.AdminProxy

public class AdminProxy
extends java.lang.Object

A AdminProxy service provides a TCP service allowing remote administration of agent servers.

The AdminProxy service can be configured by the way of service argument:


Nested Class Summary
(package private)  class AdminProxy.AdminMonitor
           
 
Field Summary
(package private) static java.lang.String ADD_SERVICE
           
static java.lang.String CONFIG
           
static java.lang.String CRASH_SERVER
           
static boolean debug
           
(package private) static java.lang.String DUMP
           
(package private) static java.lang.String GC
           
(package private) static java.lang.String GET_VARIABLE
           
(package private) static java.lang.String HELP
           
(package private) static java.lang.String LIST_MCONS
           
(package private) static java.lang.String LIST_SERVICE
           
(package private)  java.net.ServerSocket listen
           
static java.lang.String LISTENPORT
          Property that define the TCP listen port
static java.lang.String LOG
           
(package private)  AdminProxy.AdminMonitor[] monitors
          Hashtable that contain all Process of running AgentServer
private static int nbm
          The number of monitors.
static java.lang.String NBMONITOR
          Property that define the number of monitor
(package private) static java.lang.String NONE
           
static java.lang.String PING
           
private static int port
          The TCP listen port, by default 8091
(package private) static AdminProxy proxy
           
(package private) static java.lang.String REMOVE_SERVICE
           
(package private) static java.lang.String SET_VARIABLE
           
(package private) static java.lang.String START_MCONS
           
(package private) static java.lang.String STOP_MCONS
           
static java.lang.String STOP_SERVER
           
(package private) static java.lang.String THREADS
           
(package private) static org.objectweb.util.monolog.api.Logger xlogmon
           
 
Constructor Summary
private AdminProxy()
          Creates an AdminProxy service.
 
Method Summary
static void init(java.lang.String args, boolean firstTime)
          Initializes the package as a well known service.
static void start()
           
static void stopService()
           
 java.lang.String toString()
          Provides a string image for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxy

static AdminProxy proxy

debug

public static boolean debug

LISTENPORT

public static final java.lang.String LISTENPORT
Property that define the TCP listen port

See Also:
Constant Field Values

port

private static int port
The TCP listen port, by default 8091


nbm

private static int nbm
The number of monitors.


NBMONITOR

public static final java.lang.String NBMONITOR
Property that define the number of monitor

See Also:
Constant Field Values

monitors

AdminProxy.AdminMonitor[] monitors
Hashtable that contain all Process of running AgentServer


listen

java.net.ServerSocket listen

xlogmon

static org.objectweb.util.monolog.api.Logger xlogmon

HELP

static final java.lang.String HELP
See Also:
Constant Field Values

NONE

static final java.lang.String NONE
See Also:
Constant Field Values

STOP_SERVER

public static final java.lang.String STOP_SERVER
See Also:
Constant Field Values

CRASH_SERVER

public static final java.lang.String CRASH_SERVER
See Also:
Constant Field Values

PING

public static final java.lang.String PING
See Also:
Constant Field Values

CONFIG

public static final java.lang.String CONFIG
See Also:
Constant Field Values

SET_VARIABLE

static final java.lang.String SET_VARIABLE
See Also:
Constant Field Values

GET_VARIABLE

static final java.lang.String GET_VARIABLE
See Also:
Constant Field Values

GC

static final java.lang.String GC
See Also:
Constant Field Values

THREADS

static final java.lang.String THREADS
See Also:
Constant Field Values

LIST_MCONS

static final java.lang.String LIST_MCONS
See Also:
Constant Field Values

START_MCONS

static final java.lang.String START_MCONS
See Also:
Constant Field Values

STOP_MCONS

static final java.lang.String STOP_MCONS
See Also:
Constant Field Values

LIST_SERVICE

static final java.lang.String LIST_SERVICE
See Also:
Constant Field Values

ADD_SERVICE

static final java.lang.String ADD_SERVICE
See Also:
Constant Field Values

REMOVE_SERVICE

static final java.lang.String REMOVE_SERVICE
See Also:
Constant Field Values

DUMP

static final java.lang.String DUMP
See Also:
Constant Field Values

LOG

public static final java.lang.String LOG
See Also:
Constant Field Values
Constructor Detail

AdminProxy

private AdminProxy()
            throws java.io.IOException
Creates an AdminProxy service.

Parameters:
port - TCP listen port of this proxy
Throws:
java.io.IOException
Method Detail

init

public static void init(java.lang.String args,
                        boolean firstTime)
                 throws java.lang.Exception
Initializes the package as a well known service.

Creates a AdminProxy proxy listen on .

Parameters:
args - parameters from the configuration file
firstTime - true when service starts anew
Throws:
java.lang.Exception

start

public static void start()

stopService

public static void stopService()

toString

public java.lang.String toString()
Provides a string image for this object.

Overrides:
toString in class java.lang.Object


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.