final int nDepth = getLevel (); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (aNI.getName ()); final IHCCell <?> aCell = aRow.addAndReturnCell (aNI.getDisplayName ()); if (nDepth > 0) aCell.addStyle (CCSSProperties.PADDING_LEFT.newValue (ECSSUnit.em (nDepth))); aRow.addCell (aMAC == null ? "" : StringHelper.getHexEncoded (aMAC)); aRow.addCell (HCEM.create (EText.MSG_ERROR.getDisplayText (aDisplayLocale))); aRow.addCell (EWebBasicsText.getYesOrNo (aNI.isUp (), aDisplayLocale)); aRow.addCell (HCEM.create (EText.MSG_ERROR.getDisplayText (aDisplayLocale))); aRow.addCell (EWebBasicsText.getYesOrNo (aNI.isLoopback (), aDisplayLocale)); aRow.addCell (HCEM.create (EText.MSG_ERROR.getDisplayText (aDisplayLocale))); aRow.addCell (EWebBasicsText.getYesOrNo (aNI.isPointToPoint (), aDisplayLocale)); aRow.addCell (HCEM.create (EText.MSG_ERROR.getDisplayText (aDisplayLocale))); aRow.addCell (EWebBasicsText.getYesOrNo (aNI.supportsMulticast (), aDisplayLocale)); aRow.addCell (HCEM.create (EText.MSG_ERROR.getDisplayText (aDisplayLocale))); {} if (nMTU > 0)
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final IHCTable <?> aTable = getStyler ().createTable (HCCol.star (), HCCol.star ()).setID (getID ()); aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); // For all environment variables for (final Map.Entry <String, String> aEntry : System.getenv ().entrySet ()) { final HCRow aRow = aTable.addBodyRow (); aRow.addCell (aEntry.getKey ()); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = getStyler ().createDefaultDataTables (aWPEC, aTable); aDataTables.setInitialSorting (0, ESortOrder.ASCENDING); aNodeList.addChild (aDataTables); } }
public DataTablesServerDataRow (@Nonnull final HCRow aRow, @Nonnull final IHCConversionSettings aCS) { if (aRow.hasAnyStyle ()) s_aLogger.warn ("Cell has styles assigned which will be lost: " + aRow.getAllStyles ()); m_sRowID = aRow.getID (); m_sRowClass = aRow.getAllClassesAsString (); m_aCells = new ArrayList <DataTablesServerDataCell> (aRow.getCellCount ()); for (final IHCCell <?> aCell : aRow.getAllCells ()) m_aCells.add (new DataTablesServerDataCell (aCell, aCS)); }
public void onCounter (@Nonnull final String sName, @Nonnull final IStatisticsHandlerCounter aHandler) { if (aHandler.getInvocationCount () > 0) aTableCounter.addBodyRow ().addCells (sName, "", Integer.toString (aHandler.getInvocationCount ()), Long.toString (aHandler.getCount ())); }
public void onKeyedCounter (@Nonnull final String sName, @Nonnull final IStatisticsHandlerKeyedCounter aHandler) { for (final String sKey : aHandler.getAllKeys ()) { final int nInvocationCount = aHandler.getInvocationCount (sKey); if (nInvocationCount > 0) aTableCounter.addBodyRow ().addCells (sName, sKey, Integer.toString (nInvocationCount), Long.toString (aHandler.getCount (sKey))); } } });
HCCol.star (), HCCol.star ()).setID (getID ()); aTable.addHeaderRow ().addCells (EText.MSG_CODE.getDisplayText (aDisplayLocale), EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_SYMBOL.getDisplayText (aDisplayLocale), aRow.addCell (aCurrency.getCurrencyCode ()); aRow.addCell (eCurrency == null ? null : eCurrency.getDisplayText (aDisplayLocale)); aRow.addCell (aCurrency.getSymbol (aDisplayLocale)); aRow.addCell (Integer.toString (aCurrency.getDefaultFractionDigits ())); aRow.addCell (NumberFormat.getCurrencyInstance (aLocale).format (12.3456)); aSB.append (eContinent.getDisplayText (aDisplayLocale)); aRow.addCell (aSB.toString ()); aRow.addCell (aDiv);
public void onCache (@Nonnull final String sName, @Nonnull final IStatisticsHandlerCache aHandler) { if (aHandler.getInvocationCount () > 0) aTableCache.addBodyRow ().addCells (sName, Integer.toString (aHandler.getInvocationCount ()), Integer.toString (aHandler.getHits ()), Integer.toString (aHandler.getMisses ())); }
"; Zeitpunkt: " + PDTToString.getAsString (PDTFactory.getCurrentDateTime (), aDisplayLocale)); aTable.addHeaderRow ().addCells (EText.MSG_ID.getDisplayText (aDisplayLocale), EText.MSG_GROUP.getDisplayText (aDisplayLocale), EText.MSG_NAME.getDisplayText (aDisplayLocale), aRow.addCell (Long.toString (aThread.getId ())); aRow.addCell (_getThreadGroupName (aThreadGroup)); aRow.addCell (aThread.getName ()); aRow.addCell (Integer.toString (aThread.getPriority ())); aRow.addCell (String.valueOf (aThread.getState ())); aRow.addCell (HCUtils.nl2brList (StackTraceHelper.getStackAsString (aEntry.getValue ())));
public void onSize (@Nonnull final String sName, @Nonnull final IStatisticsHandlerSize aHandler) { if (aHandler.getInvocationCount () > 0) aTableSize.addBodyRow ().addCells (sName, "", Integer.toString (aHandler.getInvocationCount ()), Long.toString (aHandler.getMin ()), Long.toString (aHandler.getMax ()), Long.toString (aHandler.getAverage ()), aHandler.getSum ().toString ()); }
aTable.addHeaderRow ().addCells (EText.MSG_ID.getDisplayText (aDisplayLocale), EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_CONTINENTS.getDisplayText (aDisplayLocale)); aRow.addCell (aCountry.getCountry ()); aRow.addCell (aDiv); aSB.append (eContinent.getDisplayText (aDisplayLocale)); aRow.addCell (aSB.toString ());
public void onTimer (@Nonnull final String sName, @Nonnull final IStatisticsHandlerTimer aHandler) { if (aHandler.getInvocationCount () > 0) aTableTimer.addBodyRow ().addCells (sName, "", Integer.toString (aHandler.getInvocationCount ()), Long.toString (aHandler.getMin ()), Long.toString (aHandler.getMax ()), Long.toString (aHandler.getAverage ()), aHandler.getSum ().toString ()); }
aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); for (final Map.Entry <String, List <String>> aEntry : CollectionHelper.getSortedByKey (RequestHelper.getRequestHeaderMap (aHttpRequest) aTable.addBodyRow ().addCell (aEntry.getKey ()).addCell (HCUtils.list2divList (aEntry.getValue ())); aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale), EText.MSG_DETAILS.getDisplayText (aDisplayLocale)); aTable.addBodyRow ().addCell (aEntry.getKey ()).addCell (aCookie.getValue ()).addCell (sOther); aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); for (final Map.Entry <String, String> aEntry : RequestLogger.getRequestParameterMap (aHttpRequest).entrySet ()) aTable.addBodyRow ().addCell (aEntry.getKey ()).addCell (aEntry.getValue ()); aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); for (final Map.Entry <String, String> aEntry : RequestLogger.getRequestFieldMap (aHttpRequest).entrySet ()) aTable.addBodyRow ().addCell (aEntry.getKey ()).addCell (aEntry.getValue ()); HCCol.star ()); aTable.setID (getID () + "$attrs"); aTable.addHeaderRow ().addCells (EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_TYPE.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale));
public void onKeyedTimer (@Nonnull final String sName, @Nonnull final IStatisticsHandlerKeyedTimer aHandler) { for (final String sKey : aHandler.getAllKeys ()) { final int nInvocationCount = aHandler.getInvocationCount (sKey); if (nInvocationCount > 0) aTableTimer.addBodyRow ().addCells (sName, sKey, Integer.toString (nInvocationCount), Long.toString (aHandler.getMin (sKey)), Long.toString (aHandler.getMax (sKey)), Long.toString (aHandler.getAverage (sKey)), aHandler.getSum (sKey).toString ()); } }
aTable.setID (getID () + "$special"); aTable.setSpanningHeaderContent (EText.MSG_HEADER_SPECIAL_SYSPROPS.getDisplayText (aDisplayLocale)); aTable.addHeaderRow ().addCells (EText.MSG_HEADER_NAME.getDisplayText (aDisplayLocale), EText.MSG_HEADER_VALUE.getDisplayText (aDisplayLocale)); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_OS.getDisplayText (aDisplayLocale), SystemHelper.getOperatingSystem ().getDisplayName () + " / " + SystemHelper.getOperatingSystemName ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_NUM_PROCESSORS.getDisplayText (aDisplayLocale), Integer.toString (SystemHelper.getNumberOfProcessors ())); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_CHARSET.getDisplayText (aDisplayLocale), SystemHelper.getSystemCharset ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_LOCALE.getDisplayText (aDisplayLocale), SystemHelper.getSystemLocale ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_FREE.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getFreeMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getFreeMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_MAX.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getMaxMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getMaxMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_TOTAL.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getTotalMemory ()) + " / " + aSH.getAsMatching (SystemHelper.getTotalMemory (), 2)); aTable.addBodyRow ().addCells (EText.MSG_CONTEXT_CLASSLOADER.getDisplayText (aDisplayLocale), ClassHelper.getContextClassLoader ().toString ());
public void onKeyedSize (@Nonnull final String sName, @Nonnull final IStatisticsHandlerKeyedSize aHandler) { for (final String sKey : aHandler.getAllKeys ()) { final int nInvocationCount = aHandler.getInvocationCount (sKey); if (nInvocationCount > 0) aTableSize.addBodyRow ().addCells (sName, sKey, Integer.toString (nInvocationCount), Long.toString (aHandler.getMin (sKey)), Long.toString (aHandler.getMax (sKey)), Long.toString (aHandler.getAverage (sKey)), aHandler.getSum (sKey).toString ()); } }
aTable.addHeaderRow ().addCells (EText.MSG_ID.getDisplayText (aDisplayLocale), EText.MSG_NAME.getDisplayText (aDisplayLocale), EText.MSG_LOCALES.getDisplayText (aDisplayLocale)); aRow.addCell (aEntry.getKey ()); aRow.addCell (CollectionHelper.getFirstElement (aEntry.getValue ()).getDisplayLanguage (aDisplayLocale)); final IHCCell <?> aCell = aRow.addCell (); for (final Locale aLocale : CollectionHelper.getSorted (aEntry.getValue (), new ComparatorLocale ()))
aTable.addHeaderRow ().addCells (EText.MSG_KEY.getDisplayText (aDisplayLocale), EText.MSG_FACTORY.getDisplayText (aDisplayLocale), EText.MSG_URL.getDisplayText (aDisplayLocale)); .entrySet ()) aTable.addBodyRow ().addCells (aEntry.getKey (), aEntry.getValue ().getExecutorFactory ().toString (), aEntry.getValue ().getInvocationURI (aRequestScope)); sAppScopeID + "-cb"); aTable.addHeaderRow ().addCells (EText.MSG_TYPE.getDisplayText (aDisplayLocale), EText.MSG_CALLBACK.getDisplayText (aDisplayLocale)); for (final IAjaxExceptionCallback aCB : aMgr.getExceptionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("Exception", aCB.toString ()); for (final IAjaxBeforeExecutionCallback aCB : aMgr.getBeforeExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("BeforeExecution", aCB.toString ()); for (final IAjaxAfterExecutionCallback aCB : aMgr.getAfterExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("AfterExecution", aCB.toString ()); for (final IAjaxLongRunningExecutionCallback aCB : aMgr.getLongRunningExecutionCallbacks () .getAllCallbacks ()) aTable.addBodyRow ().addCells ("LongRunningExecution", aCB.toString ()); aTab.addChild (aTable);
new HCCol (100), HCCol.star ()).setID (getID ()); aTable.addHeaderRow ().addCells (EText.MSG_HEADER_DATE.getDisplayText (aDisplayLocale), EText.MSG_HEADER_COMPONENT.getDisplayText (aDisplayLocale), EText.MSG_HEADER_CATEGORY.getDisplayText (aDisplayLocale), aRow.addCell (PDTToString.getAsString (PDTFactory.createLocalDate (aEntry.getDate ()), aDisplayLocale)); aRow.addCell (aEntry.getChangeLog ().getComponent ()); aRow.addCell (aEntry.getCategory ().getID () + " " + aEntry.getAction ().getID ()); aRow.addCell (_getText (aEntry, aDisplayLocale));
aTable.addHeaderRow ().addCells (EText.MSG_KEY.getDisplayText (aDisplayLocale), EText.MSG_FACTORY.getDisplayText (aDisplayLocale), EText.MSG_URL.getDisplayText (aDisplayLocale)); .entrySet ()) aTable.addBodyRow ().addCells (aEntry.getKey (), aEntry.getValue ().getExecutorFactory ().toString (), aEntry.getValue ().getInvocationURI (aRequestScope)); sAppScopeID + "-cb"); aTable.addHeaderRow ().addCells (EText.MSG_TYPE.getDisplayText (aDisplayLocale), EText.MSG_CALLBACK.getDisplayText (aDisplayLocale)); for (final IActionExceptionCallback aCB : aMgr.getExceptionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("Exception", aCB.toString ()); for (final IActionBeforeExecutionCallback aCB : aMgr.getBeforeExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("BeforeExecution", aCB.toString ()); for (final IActionAfterExecutionCallback aCB : aMgr.getAfterExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("AfterExecution", aCB.toString ()); for (final IActionLongRunningExecutionCallback aCB : aMgr.getLongRunningExecutionCallbacks () .getAllCallbacks ()) aTable.addBodyRow ().addCells ("LongRunningExecution", aCB.toString ()); aTab.addChild (aTable);