Methods Summary |
---|
void | destroy()Stops message visualization for this application.
Collection endpoints = _endpoints.values();
for (Iterator iter=endpoints.iterator(); iter.hasNext();) {
EndpointHandler eph = (EndpointHandler) iter.next();
if (eph != null) {
eph.destroy();
}
}
_endpoints.clear();
_endpoints = null;
_logger.finer("Message trace mediator destroyed for " + _applicationId);
|
void | disable(java.lang.String wsEndpoint)Disables monitoring for the endpoint.
EndpointHandler eph = (EndpointHandler) _endpoints.remove(wsEndpoint);
if (eph != null) {
eph.destroy();
}
|
void | enable(java.lang.String wsEndpoint, int size)Enables monitoring for the endpoint.
EndpointHandler eph =
new EndpointHandler(wsEndpoint, size, _applicationId);
_endpoints.put(wsEndpoint, eph);
|
java.util.Collection | getMessages(java.lang.String wsEndpoint)Returns messages for the given endpoint.
EndpointHandler eph = (EndpointHandler) _endpoints.get(wsEndpoint);
if (eph != null) {
return eph.getMessages();
}
return null;
|
java.util.Collection | getMessages()Returns all messages for this application.
Collection c = new ArrayList();
Collection endpoints = _endpoints.values();
for (Iterator iter=endpoints.iterator(); iter.hasNext();) {
EndpointHandler eph = (EndpointHandler) iter.next();
if (eph != null) {
c.addAll( eph.getMessages() );
}
}
return c;
|
boolean | isEmpty()Returns true if there are no endpoints in this application mediator.
Collection c = _endpoints.values();
return c.isEmpty();
|
void | setMessageHistorySize(java.lang.String wsEndpoint, int size)Sets the number of messages stored in memory for this application.
This method is called to dynamically reconfigure the size.
EndpointHandler eph = (EndpointHandler) _endpoints.get(wsEndpoint);
if (eph != null) {
eph.setMessageHistorySize(size);
}
|