public MonitoringAdapter() {
}
public void startup() {
final List<Layer> layers = LayerHandler.getInstance().getLayers();
SipMonitoringManagerImpl smmi = SipMonitoringManagerImpl.getInstance();
smmi.register();
for (Layer layer : layers) {
if (layer instanceof DialogManager) {
if (log.isLoggable(Level.FINE)) {
log.fine("Initializing Session Manager Stats");
}
smmi.enableSipStats(SipMonitoring.SESSION_MANAGER, layer, MonitoringLevel.HIGH);
} else if (layer instanceof NetworkManager) {
if (log.isLoggable(Level.FINE)) {
log.fine("Initializing Network Manager Stats");
}
smmi.enableSipStats(SipMonitoring.NETWORK_MANAGER, layer, MonitoringLevel.HIGH);
} else if (layer instanceof TransactionManager) {
if (log.isLoggable(Level.FINE)) {
log.fine("Initializing Transaction Manager Stats");
}
smmi.enableSipStats(SipMonitoring.TRANSACTION_MANAGER, layer, MonitoringLevel.HIGH);
} else if (layer instanceof OverloadProtectionManager) {
if (log.isLoggable(Level.FINE)) {
log.fine("Initializing Overload Protection Manager Stats");
}
smmi.enableSipStats(SipMonitoring.OVERLOAD_PROTECTION_MANAGER, layer, MonitoringLevel.HIGH);
}
}
}