Package de.xima.fc.ms.monitoring
Class MSMonitor
- java.lang.Object
-
- de.xima.fc.ms.monitoring.MSMonitor
-
- All Implemented Interfaces:
MSMonitorMBean
public class MSMonitor extends Object implements MSMonitorMBean
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
connect_frontendserver_by_id(long fsId, boolean force)
Trigger (re-)connect to a frontend serverboolean
connect_frontendserver_by_name(String fsName, boolean force)
Trigger (re-)connect to a frontend serverlong
getfailed_login_count()
Map<String,Boolean>
getfs_active()
Map<String,Boolean>
getfs_connected()
int
getfs_connected_count()
int
getfs_disconnected_count()
Map<String,String>
getfs_status()
static MSMonitor
getInstance()
static String
getInstanceName()
long
getsession_count_backend()
long
getsession_count_form()
long
getsession_count_form(long clientId)
boolean
is_system_license_valid()
boolean
isdb_connected()
boolean
isrunning()
static void
register()
static void
unregister()
-
-
-
Method Detail
-
getInstance
public static MSMonitor getInstance()
-
getInstanceName
public static String getInstanceName()
-
register
public static void register()
-
unregister
public static void unregister()
-
isrunning
public boolean isrunning()
- Specified by:
isrunning
in interfaceMSMonitorMBean
-
getfs_connected
public Map<String,Boolean> getfs_connected()
- Specified by:
getfs_connected
in interfaceMSMonitorMBean
-
getfs_disconnected_count
public int getfs_disconnected_count()
- Specified by:
getfs_disconnected_count
in interfaceMSMonitorMBean
-
getfs_connected_count
public int getfs_connected_count()
- Specified by:
getfs_connected_count
in interfaceMSMonitorMBean
-
isdb_connected
public boolean isdb_connected()
- Specified by:
isdb_connected
in interfaceMSMonitorMBean
-
getfs_active
public Map<String,Boolean> getfs_active()
- Specified by:
getfs_active
in interfaceMSMonitorMBean
-
getfs_status
public Map<String,String> getfs_status()
- Specified by:
getfs_status
in interfaceMSMonitorMBean
-
getfailed_login_count
public long getfailed_login_count()
- Specified by:
getfailed_login_count
in interfaceMSMonitorMBean
-
connect_frontendserver_by_name
public boolean connect_frontendserver_by_name(String fsName, boolean force)
Description copied from interface:MSMonitorMBean
Trigger (re-)connect to a frontend server- Specified by:
connect_frontendserver_by_name
in interfaceMSMonitorMBean
- Parameters:
fsName
- name of the frontend serverforce
- iftrue
reconnect to the server even if it is already connected- Returns:
- whether or not the (re-)connect was successful
-
connect_frontendserver_by_id
public boolean connect_frontendserver_by_id(long fsId, boolean force)
Description copied from interface:MSMonitorMBean
Trigger (re-)connect to a frontend server- Specified by:
connect_frontendserver_by_id
in interfaceMSMonitorMBean
- Parameters:
fsId
- ID of the frontend serverforce
- iftrue
reconnect to the server even if it is already connected- Returns:
- whether or not the (re-)connect was successful
-
getsession_count_form
public long getsession_count_form()
- Specified by:
getsession_count_form
in interfaceMSMonitorMBean
- Returns:
- The number of active form sessions on this master server.
-
getsession_count_form
public long getsession_count_form(long clientId)
- Specified by:
getsession_count_form
in interfaceMSMonitorMBean
- Parameters:
clientId
- ID of the client for which to look for form sessions.- Returns:
- The number of active form sessions on this master server for the given client.
-
getsession_count_backend
public long getsession_count_backend()
- Specified by:
getsession_count_backend
in interfaceMSMonitorMBean
- Returns:
- The number of active backend sessions on this master server.
-
is_system_license_valid
public boolean is_system_license_valid()
- Specified by:
is_system_license_valid
in interfaceMSMonitorMBean
- Returns:
true
if the system license is valid,false
otherwise
-
-