Methods Summary |
---|
private void | fine(java.lang.String s)
getLogger().log(Level.INFO, s); //FIXME. change to fine
|
protected com.sun.enterprise.admin.event.AdminEventResult | forwardEvent(com.sun.enterprise.admin.event.AdminEvent e)
AdminEventResult result = null;
result = AdminEventMulticaster.multicastEvent(e);
return result;
|
private java.util.logging.Logger | getLogger()
if (_logger == null) {
_logger = Logger.getLogger(LogDomains.ADMIN_LOGGER);
}
return _logger;
|
private java.lang.String | getServerName()
return ApplicationServer.getServerContext().getInstanceName();
|
public java.lang.String[] | listTimers(java.lang.String target)Lists ALL the ejb timers
fine("Entering list Timers");
String server = getServerName();
fine("List Timers: Sending Notification to server" + server);
String[] resStr = sendListTimerEvent(server, new String[] {server});
fine("RESULT: " + resStr);
if(resStr == null || resStr.length == 0) {
resStr = new String[] {"There are no Ejb Timers."};
}
resStr[0] = server + ": " + resStr[0];
return resStr;
|
protected java.lang.String[] | sendListTimerEvent(java.lang.String server, java.lang.String[] allServers)
AdminEvent event = new EjbTimerEvent(server,
EjbTimerEvent.ACTION_LISTTIMERS,
server,
allServers);
event.setTargetDestination(server);
AdminEventResult res = forwardEvent(event);
return (String[]) res.getAttribute(server,
EjbTimerEvent.EJB_TIMER_CALL_RESULT_ATTRNAME);
|