@Override Object process(Object rrd) throws Exception { // if the rrd is already open we are confused if (rrd != null) { m_log.debug("WHAT! rrd open but not created?"); m_delegate.closeFile(rrd); rrd = null; } // create the file m_delegate.createFile(getData()); // keep stats setCreatesCompleted(getCreatesCompleted() + 1); // return the file return rrd; }
/** * <p>createFile</p> * * @param op a {@link Operation} object. * @throws java.lang.Exception if any. */ @Override public void createFile(CreateOperation op) throws Exception { if (m_queueCreates) { addOperation(op); } else { m_delegate.createFile(op.getData()); } }
@Override Object process(Object rrd) throws Exception { // if the rrd is already open we are confused if (rrd != null) { m_log.debug("WHAT! rrd open but not created?"); m_delegate.closeFile(rrd); rrd = null; } // create the file m_delegate.createFile(getData()); // keep stats setCreatesCompleted(getCreatesCompleted() + 1); // return the file return rrd; }
/** * <p>createFile</p> * * @param op a {@link Operation} object. * @throws java.lang.Exception if any. */ @Override public void createFile(CreateOperation op) throws Exception { if (m_queueCreates) { addOperation(op); } else { m_delegate.createFile(op.getData()); } }
/** * <p>makeCreateOperation</p> * * @param fileName a {@link java.lang.String} object. * @param rrdDef a {@link java.lang.Object} object. * @return a {@link org.opennms.netmgt.rrd.QueuingRrdStrategy.Operation} object. */ CreateOperation makeCreateOperation(String fileName, Object rrdDef) { return new CreateOperation(fileName, rrdDef); }
/** * <p>makeCreateOperation</p> * * @param fileName a {@link java.lang.String} object. * @param rrdDef a {@link java.lang.Object} object. * @return a {@link org.opennms.netmgt.rrd.QueuingRrdStrategy.Operation} object. */ CreateOperation makeCreateOperation(String fileName, Object rrdDef) { return new CreateOperation(fileName, rrdDef); }