ExtOutputFilenameGenerator extends OutputFilenameGenerator { public static void setIntervalLength(long intervalLength) throws AdeUsageException { if (s_intervalLength != Integer.MAX_VALUE && s_intervalLength != intervalLength) { throw new AdeUsageException("Trying to change intervalLength in ExtOutputFilenameGenerator from " + s_intervalLength + " to " + intervalLength); } s_logger.warn("Setting interval length to " + intervalLength + " in ExtOutputFilenameGenerator."); s_intervalLength = intervalLength; }  static void setIntervalLength(long intervalLength); static String getDayFormat(); static DateTimeZone getInputTimeZone(); static DateTimeZone getOutputTimeZone(); static int getIntervalSerialNumber(long intervalEndTime, FramingFlowType framingFlowType); @Override final File getIntervalXmlFile(IAnalyzedInterval analyzedInterval, FramingFlowType framingFlowType); final File getIntervalXmlV2FFile(IAnalyzedInterval analyzedInterval, FramingFlowType framingFlowType); final File getIntervalXmlV2FFileInZIP(IAnalyzedInterval analyzedInterval, FramingFlowType framingFlowType); final File getIntervalXmlV2File(IAnalyzedInterval analyzedInterval, FramingFlowType framingFlowType); final File getIntervalXmlV1File(IAnalyzedInterval analyzedInterval, FramingFlowType framingFlowType); @Override final File getIntervalXmlStorageDir(IAnalyzedInterval analyzedInterval); @Override final File getIntervalXmlFile(String sourceId, Date intervalStart, 
            File customAnalysisOutputPath, FramingFlowType framingFlowType); final String getIntervalXmlFileRelativeToIndex2(Date intervalStart, 
            FramingFlowType framingFlowType); @Override final String getIntervalXmlFileRelativeToIndex(IAnalyzedInterval ai, FramingFlowType framingFlowType); final String getIntervalXmlFileRelativeToIndex(int serialNumber); final File getIntervalXmlStorageDir(String sourceId, Date dateInInterval, File customAnalysisOutputPath); @Override final File getPeriodDir(ISource source, Date periodStartDate); long getIntervalLength(); static final String EXT_INTERVAL_XML_EXTENSION; static final String EXT_INTERVAL_ZIP_EXTENSION; static final String EXT_INTERVAL_XML_FILE_NAME_BASE_FORMAT; static final String EXT_INTERVAL_XML_V2_FILE_NAME_FORMAT; static final String EXT_INTERVAL_XML_V2F_FILE_NAME_FORMAT; static final String EXT_INTERVAL_XML_V2F_FILE_NAME_FORMAT_IN_ZIP; static final String EXT_INTERVAL_XML_V1_FILE_NAME_FORMAT; }
@Test(expected = AdeUsageException.class) public void testSetIntervalLengthWithBadValue() throws AdeUsageException { eofg.setIntervalLength(-1L); }