1 5 package org.exoplatform.portlets.monitor.portlet.component; 6 7 import java.util.* ; 8 import org.exoplatform.container.monitor.PortalMonitor; 9 import org.exoplatform.faces.core.component.UIExoCommand; 10 11 17 public class UIPortalMonitor extends UIExoCommand { 18 19 private PortalMonitor service_ ; 20 21 public UIPortalMonitor(PortalMonitor service) { 22 setRendererType("PortalMonitorRenderer"); 23 setId("UIPortalMonitor") ; 24 setClazz("UIGrid") ; 25 service_ = service ; 26 } 27 28 public List getRequestMonitorData() { 29 return service_.getRequestMonitorData() ; 30 } 31 32 public String getRequestCounter() { 33 return Long.toString(service_.getRequestCounter()) ; 34 } 35 36 public String getAverageExecutionTime() { 37 return Long.toString(service_.averageExecutionTime()) ; 38 } 39 40 public String getMinExecutionTime() { 41 return Long.toString(service_.minExecutionTime()) ; 42 } 43 44 public String getMaxExecutionTime() { 45 return Long.toString(service_.maxExecutionTime()) ; 46 } 47 48 public String getFamily() { 49 return "org.exoplatform.portlets.monitor.portlet.component.UIPortalMonitor"; 50 } 51 } | Popular Tags |