当前位置: 首页>>代码示例>>Java>>正文


Java ReportsGenerator.setStateUnRequested方法代码示例

本文整理汇总了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();			
	}		
	
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:17,代码来源:ALEControllerImpl.java

示例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();
	}
	
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:35,代码来源:ALEControllerImpl.java

示例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();
					
				}
			}
		}
	}
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:36,代码来源:ALEControllerImpl.java


注:本文中的org.fosstrak.ale.server.ReportsGenerator.setStateUnRequested方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。