本文整理汇总了Java中org.fosstrak.ale.server.ReportsGenerator.setStateUnRequested方法的典型用法代码示例。如果您正苦于以下问题:Java ReportsGenerator.setStateUnRequested方法的具体用法?Java ReportsGenerator.setStateUnRequested怎么用?Java ReportsGenerator.setStateUnRequested使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.fosstrak.ale.server.ReportsGenerator
的用法示例。
在下文中一共展示了ReportsGenerator.setStateUnRequested方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stopECSpec
import org.fosstrak.ale.server.ReportsGenerator; //导入方法依赖的package包/类
@Override
public void stopECSpec(String specName) throws org.fosstrak.ale.exception.NoSuchNameException {
LOG.info("stop ECSpec " + specName);
if (!ale.getReportGenerators().containsKey(specName)) {
throw new org.fosstrak.ale.exception.NoSuchNameException();
}
ReportsGenerator reportsGenerator = ale.getReportGenerators().get(specName);
if (reportsGenerator != null) {
reportsGenerator.setStateUnRequested();
}
}
示例2: stopAllECSpec4LogicalReader
import org.fosstrak.ale.server.ReportsGenerator; //导入方法依赖的package包/类
@Override
public void stopAllECSpec4LogicalReader(String logicalReaderName) throws org.fosstrak.ale.exception.NoSuchNameException {
LOG.info("stop all ECSpec for the logical reader " + logicalReaderName);
boolean logicalReaderFind = false;
Map<String, ReportsGenerator> reportGeneratorList = ale.getReportGenerators();
Set<String> reportGeneratorNameList = reportGeneratorList.keySet();
for (String reportGeneratorName : reportGeneratorNameList) {
ReportsGenerator reportsGenerator = reportGeneratorList.get(reportGeneratorName);
List<String> logicalReaderList = reportsGenerator.getSpec().getLogicalReaders().getLogicalReader();
for (String logicalReaderName_for : logicalReaderList) {
if (logicalReaderName.equalsIgnoreCase(logicalReaderName_for)) {
reportsGenerator.setStateUnRequested();
logicalReaderFind = true;
}
}
}
if (!logicalReaderFind) {
throw new org.fosstrak.ale.exception.NoSuchNameException();
}
}
示例3: stopAllECSpec4LogicalReaderByECSpecName
import org.fosstrak.ale.server.ReportsGenerator; //导入方法依赖的package包/类
@Override
public void stopAllECSpec4LogicalReaderByECSpecName(String specName) throws org.fosstrak.ale.exception.NoSuchNameException {
LOG.info("stop all ECSpec for the logical reader by spec name " + specName);
if (!ale.getReportGenerators().containsKey(specName)) {
throw new org.fosstrak.ale.exception.NoSuchNameException();
}
List<String> logicalReaderList = ale.getReportGenerators().get(specName).getSpec().getLogicalReaders().getLogicalReader();
if (logicalReaderList.size() > 0) {
String logicalReaderName = logicalReaderList.get(0);
Map<String, ReportsGenerator> reportGeneratorList = ale.getReportGenerators();
Set<String> reportGeneratorNameList = reportGeneratorList.keySet();
for (String reportGeneratorName : reportGeneratorNameList) {
ReportsGenerator reportsGenerator = reportGeneratorList.get(reportGeneratorName);
List<String> logicalReaderList_for = reportsGenerator.getSpec().getLogicalReaders().getLogicalReader();
for (String logicalReaderName_for : logicalReaderList_for) {
if (logicalReaderName.equalsIgnoreCase(logicalReaderName_for)) {
reportsGenerator.setStateUnRequested();
}
}
}
}
}