public void workAccepted(WorkEvent e) { LOG.fine("workAccepted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workCompleted(WorkEvent e) { LOG.fine("workCompleted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workStarted(WorkEvent e) { LOG.fine("workStarted: [" + e.getWork() + "], source is [" + e.getSource() + "]"); }
public void workRejected(WorkEvent e) { LOG.severe("workRejected: [" + e.getWork() + "], source is [" + e.getSource() + "]"); LOG.severe("root cause is:" + e.getException().getMessage()); e.getException().printStackTrace(); }
private WorkEvent unwrapWorkEvent(WorkEvent e) { return new WorkEvent(e.getSource(), e.getType(), work, e.getException(), e.getStartDuration()); } }