@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_VALUE.getDisplayText (aDisplayLocale))).setID (getID ()); // 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 = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
aNodeList.addChild (aToolbar); final HCTable aTable = new HCTable (new DTCol ("Service Group").setDataSort (0, 1) .setInitialSorting (ESortOrder.ASCENDING), new DTCol ("Name"), new DTCol ("GeoInfo"), new DTCol ("Identifiers"), new BootstrapDTColAction (aDisplayLocale)).setID (getID ()); for (final ISMPBusinessCard aCurObject : aBusinessCardMgr.getAllSMPBusinessCards ()) final HCRow aRow = aTable.addBodyRow (); aRow.addCell (new HCA (aViewLink).addChild (sDisplayName)); for (int i = 1; i < aTable.getColumnCount () - 1; ++i) aRow.addCell (); aRow.addCell (_createActionCell (aWPEC, aCurObject)); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (new HCA (aViewLink).addChild (sDisplayName)); aRow.addCell (aEntity.names ().getFirst ().getName ());
new DTCol (EText.MSG_TIMER_SUM.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale) .setInitialSorting (ESortOrder.DESCENDING)).setID (getID () + "timer"); final HCTable aTableSize = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setDataSort (0, 1), new DTCol (EText.MSG_KEY.getDisplayText (aDisplayLocale)), aDisplayLocale), new DTCol (EText.MSG_SUM.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)).setID (getID () + "size"); final HCTable aTableCounter = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setDataSort (0, 1), new DTCol (EText.MSG_KEY.getDisplayText (aDisplayLocale)), .setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_COUNT.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)).setID (getID () + "counter"); final HCTable aTableCache = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_INVOCATION.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale), new DTCol (EText.MSG_CACHE_MISS.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)
final HCTable aTable = new HCTable (new DTCol (EText.MSG_ID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_MAC.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_MTU.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale), new DTCol (EText.MSG_IS_VIRTUAL.getDisplayText (aDisplayLocale))).setID (getID () + "-ni"); try aTable.addSpanningBodyContent (EText.MSG_ERROR_FINDING.getDisplayText (aDisplayLocale) + (GlobalDebug.isDebugMode () ? ": " + t.getMessage () : ""));
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 ())); }
final HCTable aContextTable = new HCTable (HCCol.star (), HCCol.star ()); for (final Map.Entry <String, Object> aEntry : aContext.entrySet ()) aContextTable.addBodyRow ().addCells (aEntry.getKey (), aEntry.getValue ().toString ()); aTab.addChild (aContextTable);
aNodeList.addChild (aToolbar); final HCTable aTable = new HCTable (new DTCol ("Service Group").setDataSort (0, 1) .setInitialSorting (ESortOrder.ASCENDING), new DTCol ("Name"), new DTCol ("GeoInfo"), new DTCol ("Identifiers"), new BootstrapDTColAction (aDisplayLocale)).setID (getID ()); for (final ISMPBusinessCard aCurObject : aBusinessCardMgr.getAllSMPBusinessCards ()) final HCRow aRow = aTable.addBodyRow (); aRow.addCell (new HCA (aViewLink).addChild (sDisplayName)); for (int i = 1; i < aTable.getColumnCount () - 1; ++i) aRow.addCell (); aRow.addCell (_createActionCell (aWPEC, aCurObject)); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (new HCA (aViewLink).addChild (sDisplayName)); aRow.addCell (aEntity.names ().getFirst ().getName ());
new DTCol (EText.MSG_TIMER_SUM.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale) .setInitialSorting (ESortOrder.DESCENDING)).setID (getID () + "timer"); final HCTable aTableSize = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setDataSort (0, 1), new DTCol (EText.MSG_KEY.getDisplayText (aDisplayLocale)), aDisplayLocale), new DTCol (EText.MSG_SUM.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)).setID (getID () + "size"); final HCTable aTableCounter = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setDataSort (0, 1), new DTCol (EText.MSG_KEY.getDisplayText (aDisplayLocale)), .setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_COUNT.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)).setID (getID () + "counter"); final HCTable aTableCache = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_INVOCATION.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale), new DTCol (EText.MSG_CACHE_MISS.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale)
final HCTable aTable = new HCTable (new DTCol (EText.MSG_ID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_MAC.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_MTU.getDisplayText (aDisplayLocale)).setDisplayType (EDTColType.INT, aDisplayLocale), new DTCol (EText.MSG_IS_VIRTUAL.getDisplayText (aDisplayLocale))).setID (getID () + "-ni"); try aTable.addSpanningBodyContent (EText.MSG_ERROR_FINDING.getDisplayText (aDisplayLocale) + (GlobalDebug.isDebugMode () ? ": " + t.getMessage () : ""));
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 ())); }
final HCTable aContextTable = new HCTable (HCCol.star (), HCCol.star ()); for (final Map.Entry <String, Object> aEntry : aContext.entrySet ()) aContextTable.addBodyRow ().addCells (aEntry.getKey (), aEntry.getValue ().toString ()); aTab.addChild (aContextTable);
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_VALUE.getDisplayText (aDisplayLocale))).setID (getID ()); // 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 = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
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 ())); }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_APPID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_APP_SERVLET_PATH.getDisplayText (aDisplayLocale))).setID (getID ()); for (final Map.Entry <String, String> aEntry : PhotonGlobalState.getAppIDToServletPathMap ().entrySet ()) { final String sAppID = aEntry.getKey (); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (sAppID); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
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 ())); }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_APPID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_APP_SERVLET_PATH.getDisplayText (aDisplayLocale))).setID (getID ()); for (final Map.Entry <String, String> aEntry : PhotonGlobalState.getAppIDToServletPathMap ().entrySet ()) { final String sAppID = aEntry.getKey (); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (sAppID); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
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))); } } });
final HCTable aTable = new HCTable (new DTCol (EText.MSG_KEY.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_FACTORY.getDisplayText (aDisplayLocale)), new DTCol (EText.MSG_URL.getDisplayText (aDisplayLocale))).setID (getID () + "-ajax"); for (final Map.Entry <String, IAjaxFunctionDeclaration> aEntry : aMgr.getAllRegisteredFunctions ().entrySet ()) aTable.addBodyRow ().addCells (aEntry.getKey (), aEntry.getValue ().getExecutorFactory ().toString (), aEntry.getValue ().getInvocationURI (aRequestScope)); final HCTable aTable = new HCTable (new DTCol (EText.MSG_TYPE.getDisplayText (aDisplayLocale)).setDataSort (0, 1) .setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_CALLBACK.getDisplayText (aDisplayLocale))).setID (getID () + "-ajax-cb"); for (final IAjaxExceptionCallback aCB : AjaxSettings.exceptionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("Exception", aCB.toString ()); for (final IAjaxBeforeExecutionCallback aCB : AjaxSettings.beforeExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("BeforeExecution", aCB.toString ()); for (final IAjaxAfterExecutionCallback aCB : AjaxSettings.afterExecutionCallbacks ().getAllCallbacks ()) aTable.addBodyRow ().addCells ("AfterExecution", aCB.toString ()); for (final IAjaxLongRunningExecutionCallback aCB : AjaxSettings.longRunningExecutionCallbacks () .getAllCallbacks ()) aTable.addBodyRow ().addCells ("LongRunningExecution", aCB.toString ());