| java.lang.Object org.apache.commons.modeler.mbeans.SimpleRemoteConnector
SimpleRemoteConnector | public class SimpleRemoteConnector (Code) | | Based on jk2 proxy.
Proxy using a very simple HTTP based protocol.
For efficiency, it'll get bulk results and cache them - you
can force an update by calling the refreshAttributes and refreshMetadata
operations on this mbean.
TODO: implement the user/pass auth ( right now you must use IP based security )
TODO: eventually support https
TODO: support for metadata ( mbean-descriptors ) for description and type conversions
TODO: filter out trivial components ( mutexes, etc )
author: Costin Manolache |
lastRefresh | long lastRefresh(Code) | | |
updateInterval | long updateInterval(Code) | | |
webServerPort | int webServerPort(Code) | | |
SimpleRemoteConnector | public SimpleRemoteConnector()(Code) | | |
destroy | public void destroy()(Code) | | |
getStream | protected InputStream getStream(String qry) throws Exception(Code) | | connect to apache using http, get a list of mbeans. Can be
overriten to support different protocols ( jk/Unix domain sockets, etc )
|
getUpdateInterval | public long getUpdateInterval()(Code) | | |
getWebServerPort | public int getWebServerPort()(Code) | | |
refresh | public void refresh()(Code) | | Refresh the proxies, if updateInterval passed
|
refreshAttributes | public void refreshAttributes()(Code) | | |
refreshMetadata | public void refreshMetadata()(Code) | | |
setStatusPath | public void setStatusPath(String statusPath)(Code) | | |
setUpdateInterval | public void setUpdateInterval(long updateInterval)(Code) | | |
setWebServerHost | public void setWebServerHost(String webServerHost)(Code) | | |
setWebServerPort | public void setWebServerPort(int webServerPort)(Code) | | |
|
|