public class InstrumentManagerHTTPConnector
extends org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
implements org.apache.excalibur.instrument.manager.DefaultInstrumentManagerConnector, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Startable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
The default port.
|
static java.lang.String |
ENCODING
The encoding to use when writing out pages and reading in parameters.
|
private boolean |
m_antialias
Antialias flag for images.
|
private java.net.InetAddress |
m_bindAddr
The address to bind the port server to.
|
private int |
m_chartHeight
Default Chart Height.
|
private int |
m_chartWidth
Default Chart Width.
|
private boolean |
m_html
True if HTML handlers should be registered.
|
private HTTPServer |
m_httpServer |
private org.apache.excalibur.instrument.manager.DefaultInstrumentManager |
m_manager
Reference to the actual instrument manager.
|
private long |
m_maxLeasedSampleLease
The maximum amount of time that a lease will be granted for.
|
private int |
m_maxLeasedSamples
The maximum number of leased samples which will be allowed.
|
private int |
m_maxLeasedSampleSize
The maximum size of a leased sample.
|
private int |
m_port
The port to listen on for connections.
|
private boolean |
m_readOnly
True if the connector should only provide read-only access to the
Instrument Manager.
|
private java.lang.String |
m_rootBreadCrumbLabel
The root bread crumb label if configured.
|
private java.lang.String |
m_rootBreadCrumbURL
The root bread crumb URL if configured.
|
private boolean |
m_xml
True if XML handlers should be registered.
|
static java.lang.String |
XML_BANNER |
| Constructor and Description |
|---|
InstrumentManagerHTTPConnector()
Creates a new InstrumentManagerHTTPConnector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
(package private) long |
getMaxLeasedSampleLease()
Returns the maximum number of milliseconds that a lease will be granted
for.
|
(package private) int |
getMaxLeasedSamples()
Returns the maximum number of leased samples that will be approved.
|
(package private) int |
getMaxLeasedSampleSize()
Returns the maximum size of a leased sample.
|
(package private) java.lang.String |
getRootBreadCrumbLabel()
Returns the root bread crumb label or null if not configured.
|
(package private) java.lang.String |
getRootBreadCrumbURL()
Returns the root bread crumb URL or null if not configured.
|
private void |
initAndRegisterHandler(AbstractHTTPURLHandler handler,
java.lang.String name) |
(package private) boolean |
isReadOnly()
True if the connector should only provide read-only access to the
Instrument Manager.
|
void |
setInstrumentManager(org.apache.excalibur.instrument.manager.DefaultInstrumentManager manager)
Set the InstrumentManager to which the Connecter will provide
access.
|
void |
start() |
void |
stop() |
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableNamepublic static final int DEFAULT_PORT
public static final java.lang.String ENCODING
public static final java.lang.String XML_BANNER
private org.apache.excalibur.instrument.manager.DefaultInstrumentManager m_manager
private int m_port
private java.net.InetAddress m_bindAddr
private boolean m_xml
private boolean m_html
private int m_chartWidth
private int m_chartHeight
private boolean m_antialias
private int m_maxLeasedSamples
private int m_maxLeasedSampleSize
private long m_maxLeasedSampleLease
private boolean m_readOnly
private java.lang.String m_rootBreadCrumbURL
private java.lang.String m_rootBreadCrumbLabel
private HTTPServer m_httpServer
public InstrumentManagerHTTPConnector()
public void setInstrumentManager(org.apache.excalibur.instrument.manager.DefaultInstrumentManager manager)
setInstrumentManager in interface org.apache.excalibur.instrument.manager.DefaultInstrumentManagerConnectorpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void start()
throws java.lang.Exception
start in interface org.apache.avalon.framework.activity.Startablejava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface org.apache.avalon.framework.activity.Startablejava.lang.Exceptionint getMaxLeasedSamples()
int getMaxLeasedSampleSize()
long getMaxLeasedSampleLease()
boolean isReadOnly()
java.lang.String getRootBreadCrumbURL()
java.lang.String getRootBreadCrumbLabel()
private void initAndRegisterHandler(AbstractHTTPURLHandler handler, java.lang.String name) throws java.lang.Exception
java.lang.Exception