|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.wise.lms.httpForward.mbean.AdminMBean
public class AdminMBean
This is the Admin mbean implementation, ie. the Lms core.
Constructor Summary | |
---|---|
AdminMBean()
|
Method Summary | |
---|---|
void |
addLoggingServletMapping(java.lang.String name,
java.lang.String url)
Creates a new Lms mapping: requests coming to http://host:port/Lms/log/name are processed (recorded) and forwarded to the specified url. |
void |
cleanAllCommunications()
Cleans up all the recorded communications |
void |
cleanCommunications(java.lang.String name)
Cleans up the communications for the given mapping name. |
void |
create()
|
void |
destroy()
|
LogData |
getLogData(java.lang.String name)
Gets the recorder data for a given mapping. |
void |
logCommunication(java.lang.String name,
Request request,
Response response)
Requires the provided Request and Response to be recorder under the given mapping name. |
void |
removeLoggingServletMapping(java.lang.String name)
Remove a mapping from the current list of Lms mapping |
java.util.List<LogData> |
showAllLogData()
Returns the full list of recorded data. |
java.util.Map<java.lang.String,java.lang.String> |
showAllLogMappings()
Returns a map whose keys are the mapping's short name and whose values are the corresponding specified urls. |
java.lang.String |
startLogRecording(java.lang.String name)
Enable recording on the given mapping |
void |
stopAllLogRecording()
Disable recording on all the mappings currently in place. |
java.lang.String |
stopLogRecording(java.lang.String name)
Disable recording on the given mapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminMBean()
Method Detail |
---|
public void addLoggingServletMapping(java.lang.String name, java.lang.String url)
Admin
addLoggingServletMapping
in interface Admin
name
- The short name to be used for the mappingurl
- The actual address requests should be forwarded to when using this mappingpublic void removeLoggingServletMapping(java.lang.String name)
Admin
removeLoggingServletMapping
in interface Admin
name
- The name of the mapping to be removed.public java.util.Map<java.lang.String,java.lang.String> showAllLogMappings()
Admin
showAllLogMappings
in interface Admin
public LogData getLogData(java.lang.String name)
Admin
getLogData
in interface Admin
name
- The mapping name of the required data
public java.util.List<LogData> showAllLogData()
Admin
showAllLogData
in interface Admin
public void create()
create
in interface Admin
public void destroy()
destroy
in interface Admin
public java.lang.String startLogRecording(java.lang.String name)
Admin
startLogRecording
in interface Admin
name
- The name of the mapping on which the recording has to be enabled.
public java.lang.String stopLogRecording(java.lang.String name)
Admin
stopLogRecording
in interface Admin
name
- The name of the mapping on which the recording has to be disabled.
public void stopAllLogRecording()
Admin
stopAllLogRecording
in interface Admin
public void logCommunication(java.lang.String name, Request request, Response response)
Admin
logCommunication
in interface Admin
name
- The mapping namerequest
- The request objectresponse
- The response objectpublic void cleanCommunications(java.lang.String name)
Admin
cleanCommunications
in interface Admin
public void cleanAllCommunications()
Admin
cleanAllCommunications
in interface Admin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |