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 booleanconnect_frontendserver_by_id(long fsId, boolean force)Trigger (re-)connect to a frontend serverbooleanconnect_frontendserver_by_name(String fsName, boolean force)Trigger (re-)connect to a frontend serverlonggetfailed_login_count()Map<String,Boolean>getfs_active()Map<String,Boolean>getfs_connected()intgetfs_connected_count()intgetfs_disconnected_count()Map<String,String>getfs_status()static MSMonitorgetInstance()static StringgetInstanceName()longgetsession_count_backend()longgetsession_count_form()longgetsession_count_form(long clientId)booleanis_system_license_valid()booleanisdb_connected()booleanisrunning()static voidregister()static voidunregister()
-
-
-
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:
isrunningin interfaceMSMonitorMBean
-
getfs_connected
public Map<String,Boolean> getfs_connected()
- Specified by:
getfs_connectedin interfaceMSMonitorMBean
-
getfs_disconnected_count
public int getfs_disconnected_count()
- Specified by:
getfs_disconnected_countin interfaceMSMonitorMBean
-
getfs_connected_count
public int getfs_connected_count()
- Specified by:
getfs_connected_countin interfaceMSMonitorMBean
-
isdb_connected
public boolean isdb_connected()
- Specified by:
isdb_connectedin interfaceMSMonitorMBean
-
getfs_active
public Map<String,Boolean> getfs_active()
- Specified by:
getfs_activein interfaceMSMonitorMBean
-
getfs_status
public Map<String,String> getfs_status()
- Specified by:
getfs_statusin interfaceMSMonitorMBean
-
getfailed_login_count
public long getfailed_login_count()
- Specified by:
getfailed_login_countin interfaceMSMonitorMBean
-
connect_frontendserver_by_name
public boolean connect_frontendserver_by_name(String fsName, boolean force)
Description copied from interface:MSMonitorMBeanTrigger (re-)connect to a frontend server- Specified by:
connect_frontendserver_by_namein interfaceMSMonitorMBean- Parameters:
fsName- name of the frontend serverforce- iftruereconnect 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:MSMonitorMBeanTrigger (re-)connect to a frontend server- Specified by:
connect_frontendserver_by_idin interfaceMSMonitorMBean- Parameters:
fsId- ID of the frontend serverforce- iftruereconnect 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_formin 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_formin 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_backendin 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_validin interfaceMSMonitorMBean- Returns:
trueif the system license is valid,falseotherwise
-
-