public JAMonDetailValue getJAMonDetailRow() { if (monData.enabled) { synchronized (monData) { return new JAMonDetailValue(getMonKey(), monData.lastValue, monData.getThisActiveCount(), monData.lastAccess); } } else return JAMonDetailValue.NULL_VALUE; }
/** * When this event is fired the monitor will be added to the rolling buffer. * If it is a log4j monitor the buffer will be specific to log4j fields * (i.e.LoggingEvent info such as threadname, formattedmessage, exception * stack trace and a few others. If it is not then the super class's * processEvent is called. * */ @Override public void processEvent(Monitor mon) { JAMonDetailValue jamDetail=mon.getJAMonDetailRow(); jamDetail.setKeyToString(false); addRow(jamDetail); }
public JAMonDetailRow getJAMonDetailRow() { if (monData.enabled) { synchronized (monData) { return new JAMonDetailValue(getMonKey().getDetailLabel(), monData.lastValue, monData.activityStats.thisActive.getCount(), monData.lastAccess); } } else return JAMonDetailValue.NULL_VALUE; }