Package org.rioproject.log

Examples of org.rioproject.log.ServiceLogEvent


        if(event instanceof ProvisionMonitorEvent) {
            ProvisionMonitorEvent pme = (ProvisionMonitorEvent)event;
            remoteServiceEventNode = new ProvisionMonitorEventNode(pme);
        }
        if(event instanceof ServiceLogEvent) {
            ServiceLogEvent sle = (ServiceLogEvent)event;
            remoteServiceEventNode = new ServiceLogEventNode(sle);
        }
        if(event instanceof SLAThresholdEvent) {
            SLAThresholdEvent sla = (SLAThresholdEvent)event;
            remoteServiceEventNode = new SLAThresholdEventNode(sla);
View Full Code Here


                }

            } else if(event instanceof ServiceLogEvent) {
                String label = "ServiceLogEvent."+eventNode.getValueAt(0);
                tableData.put("Event", label);
                ServiceLogEvent sle = (ServiceLogEvent)event;
                thrown = sle.getLogRecord().getThrown();
                String exception = getExceptionText(thrown);
                tableData.put("When", Constants.DATE_FORMAT.format(event.getDate()));
                tableData.put("Deployment", sle.getOpStringName());
                tableData.put("Service", sle.getServiceName());
                tableData.put("Machine", sle.getAddress().getHostName());
                tableData.put("Message", sle.getLogRecord().getLevel()+": "+sle.getLogRecord().getMessage());
                if(exception!=null) {
                    tableData.put("Exception", exception);
                    table.setRowHeight(tableData.size(), table.getRowHeight() * 20);
                }
            } else {
View Full Code Here

TOP

Related Classes of org.rioproject.log.ServiceLogEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.