@Override public void onKeyedCounter (final String sName, final IStatisticsHandlerKeyedCounter aHandler) { if (aHandler.getInvocationCount () > 0) { final IMicroElement eKeyedCounter = m_eRoot.appendElement (StatisticsExporter.ELEMENT_KEYEDCOUNTER) .setAttribute (StatisticsExporter.ATTR_NAME, sName) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount ()); for (final String sKey : aHandler.getAllKeys ().getSorted (Comparator.naturalOrder ())) { eKeyedCounter.appendElement (StatisticsExporter.ELEMENT_KEY) .setAttribute (StatisticsExporter.ATTR_NAME, sKey) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount (sKey)) .setAttribute (StatisticsExporter.ATTR_COUNT, aHandler.getCount (sKey)); } } } }
protected final void logThirdpartyModules () { // List all third party modules for later evaluation final ICommonsSet <IThirdPartyModule> aModules = ThirdPartyModuleRegistry.getInstance () .getAllRegisteredThirdPartyModules (); if (!aModules.isEmpty ()) { LOGGER.info ("Using the following third party modules:"); for (final IThirdPartyModule aModule : aModules.getSorted (IHasDisplayName.getComparatorCollating (SystemHelper.getSystemLocale ()))) if (!aModule.isOptional ()) { String sMsg = " " + aModule.getDisplayName (); if (aModule.getVersion () != null) sMsg += ' ' + aModule.getVersion ().getAsString (true); sMsg += " licensed under " + aModule.getLicense ().getDisplayName (); if (aModule.getLicense ().getVersion () != null) sMsg += ' ' + aModule.getLicense ().getVersion ().getAsString (); LOGGER.info (sMsg); } } }
@Override public void onKeyedSize (final String sName, final IStatisticsHandlerKeyedSize aHandler) { if (aHandler.getInvocationCount () > 0) { final IMicroElement eKeyedSize = m_eRoot.appendElement (StatisticsExporter.ELEMENT_KEYEDSIZE) .setAttribute (StatisticsExporter.ATTR_NAME, sName) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount ()); for (final String sKey : aHandler.getAllKeys ().getSorted (Comparator.naturalOrder ())) { eKeyedSize.appendElement (StatisticsExporter.ELEMENT_KEY) .setAttribute (StatisticsExporter.ATTR_NAME, sKey) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount (sKey)) .setAttribute (StatisticsExporter.ATTR_MIN, aHandler.getMin (sKey)) .setAttribute (StatisticsExporter.ATTR_AVERAGE, aHandler.getAverage (sKey)) .setAttribute (StatisticsExporter.ATTR_MAX, aHandler.getMax (sKey)) .setAttributeWithConversion (StatisticsExporter.ATTR_SUM, aHandler.getSum (sKey)); } } }
@Override public void onKeyedTimer (final String sName, final IStatisticsHandlerKeyedTimer aHandler) { if (aHandler.getInvocationCount () > 0) { final IMicroElement eKeyedTimer = m_eRoot.appendElement (StatisticsExporter.ELEMENT_KEYEDTIMER) .setAttribute (StatisticsExporter.ATTR_NAME, sName) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount ()); for (final String sKey : aHandler.getAllKeys ().getSorted (Comparator.naturalOrder ())) { eKeyedTimer.appendElement (StatisticsExporter.ELEMENT_KEY) .setAttribute (StatisticsExporter.ATTR_NAME, sKey) .setAttribute (StatisticsExporter.ATTR_INVOCATIONCOUNT, aHandler.getInvocationCount (sKey)) .setAttribute (StatisticsExporter.ATTR_MIN, aHandler.getMin (sKey)) .setAttribute (StatisticsExporter.ATTR_AVERAGE, aHandler.getAverage (sKey)) .setAttribute (StatisticsExporter.ATTR_MAX, aHandler.getMax (sKey)) .setAttributeWithConversion (StatisticsExporter.ATTR_SUM, aHandler.getSum (sKey)); } } }
aSGSelect.addOption (SERVICE_GROUP_ALL, "All affected Service Groups"); if (aServiceGroups != null) for (final ISMPServiceGroup aSG : aServiceGroups.getSorted (ISMPServiceGroup.comparator ())) aSGSelect.addOption (aSG.getID (), aSG.getParticpantIdentifier ().getURIEncoded ()); aForm.addFormGroup (new BootstrapFormGroup ().setLabel ("Service group")
aSGSelect.addOption (SERVICE_GROUP_ALL, "All affected Service Groups"); if (aServiceGroups != null) for (final ISMPServiceGroup aSG : aServiceGroups.getSorted (ISMPServiceGroup.comparator ())) aSGSelect.addOption (aSG.getID (), aSG.getParticpantIdentifier ().getURIEncoded ()); aForm.addFormGroup (new BootstrapFormGroup ().setLabel ("Service group")