etm.contrib.console
Class HttpConsoleServer

java.lang.Object
  extended by etm.contrib.console.HttpConsoleServer
Direct Known Subclasses:
HttpConsoleServerPlugin

public class HttpConsoleServer
extends java.lang.Object

HttpConsoleServer is a drop-in http Server that renders EtmMonitor results. By default it uses 2 worker threads for processing and listens to port 40000. Use http://localhost:40000 to access the console.

By default this console uses a collapsed view that renders top level measurement points in an overview page and allows direct access to nested results on a per-point level basis.

By setting setExpanded(boolean) to true all measurement points including all nested ones will be rendered in a single page.

This console is not intended for high traffic usage.

Version:
$Revision: 130 $
Author:
void.fm

Field Summary
protected  EtmMonitor etmMonitor
           
 
Constructor Summary
HttpConsoleServer(EtmMonitor aEtmMonitor)
           
 
Method Summary
protected  int getListenPort()
           
protected  etm.contrib.console.HttpConsoleServer.ConsoleWorker getWorker()
           
protected  int getWorkerSize()
           
protected  boolean isExpanded()
           
protected  void returnWorker(etm.contrib.console.HttpConsoleServer.ConsoleWorker aConsoleWorker)
           
 void setExpanded(boolean aExpanded)
          Enables expanded result rendering.
 void setListenPort(int aListenPort)
          Overrides default listen port.
 void setWorkerSize(int aWorkerSize)
          Overrides default worker size.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

etmMonitor

protected EtmMonitor etmMonitor
Constructor Detail

HttpConsoleServer

public HttpConsoleServer(EtmMonitor aEtmMonitor)
Method Detail

setListenPort

public void setListenPort(int aListenPort)
Overrides default listen port.

Parameters:
aListenPort - The new listen port.

setExpanded

public void setExpanded(boolean aExpanded)
Enables expanded result rendering. Be aware that large or deep performance measurement results may be hard to read in expanded view.

Parameters:
aExpanded - True to enable expanded views.

setWorkerSize

public void setWorkerSize(int aWorkerSize)
Overrides default worker size.

Parameters:
aWorkerSize - The worker size, has to be 2 or more.
Throws:
java.lang.IllegalArgumentException - Thrown if size is lower than two.

start

public void start()

stop

public void stop()

getWorker

protected etm.contrib.console.HttpConsoleServer.ConsoleWorker getWorker()

returnWorker

protected void returnWorker(etm.contrib.console.HttpConsoleServer.ConsoleWorker aConsoleWorker)

getListenPort

protected int getListenPort()

getWorkerSize

protected int getWorkerSize()

isExpanded

protected boolean isExpanded()


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.