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


Java ProfilerAggregator类代码示例

本文整理汇总了Java中com.ibm.commons.util.profiler.ProfilerAggregator的典型用法代码示例。如果您正苦于以下问题:Java ProfilerAggregator类的具体用法?Java ProfilerAggregator怎么用?Java ProfilerAggregator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ProfilerAggregator类属于com.ibm.commons.util.profiler包,在下文中一共展示了ProfilerAggregator类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processDomino2Java

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public void processDomino2Java(Document docCurrent, Object objCurrent, Vector<?> vecCurrent, Definition def) {
	try {
		Method mt = objCurrent.getClass().getMethod("set" + def.getJavaField(), List.class);
		List<String> lstValues = null;
		if (Profiler.isEnabled()) {
			ProfilerAggregator pa = Profiler.startProfileBlock(pt, "getValueFormStore");
			long startTime = Profiler.getCurrentTime();
			try {
				lstValues = getValueFromStore(docCurrent, vecCurrent, def);
			} finally {
				Profiler.endProfileBlock(pa, startTime);
			}
		} else {
			lstValues = getValueFromStore(docCurrent, vecCurrent, def);
		}

		if (lstValues != null) {
			mt.invoke(objCurrent, lstValues);
		}
	} catch (Exception e) {
		LoggerFactory.logWarning(getClass(), "Error during processDomino2Java", e);
	}
}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:24,代码来源:ListStringBinder.java

示例2: processDomino2Java

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
@Override
public void processDomino2Java(Document docCurrent, Object objCurrent, Vector<?> vecValues, Definition def) {
	try {
		Method mt = objCurrent.getClass().getMethod("set" + def.getJavaField(), List.class);
		List<Integer> lstValues = null;
		if (Profiler.isEnabled()) {
			ProfilerAggregator pa = Profiler.startProfileBlock(pt, "getValueFormStore");
			long startTime = Profiler.getCurrentTime();
			try {
				lstValues = getValueFromStore(docCurrent, vecValues, def);
			} finally {
				Profiler.endProfileBlock(pa, startTime);
			}
		} else {
			lstValues = getValueFromStore(docCurrent, vecValues, def);
		}

		if (lstValues != null) {
			mt.invoke(objCurrent, lstValues);
		}
	} catch (Exception e) {
		LoggerFactory.logWarning(getClass(), "Error during processDomino2Java", e);
	}

}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:26,代码来源:ListIntegerBinder.java

示例3: processDomino2Java

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
@Override
public void processDomino2Java(Document docCurrent, Object objCurrent, Vector<?> vecValues, Definition def) {
	try {
		Method mt = objCurrent.getClass().getMethod("set" + def.getJavaField(), List.class);
		List<Double> lstValues = null;
		if (Profiler.isEnabled()) {
			ProfilerAggregator pa = Profiler.startProfileBlock(pt, "getValueFormStore");
			long startTime = Profiler.getCurrentTime();
			try {
				lstValues = getValueFromStore(docCurrent, vecValues, def);
			} finally {
				Profiler.endProfileBlock(pa, startTime);
			}
		} else {
			lstValues = getValueFromStore(docCurrent, vecValues, def);
		}

		if (lstValues != null) {
			mt.invoke(objCurrent, lstValues);
		}
	} catch (Exception e) {
		LoggerFactory.logWarning(getClass(), "Error during processDomino2Java", e);
	}

}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:26,代码来源:ListDoubleBinder.java

示例4: getPerson

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public String getPerson(Definition def, String strValue, Session sesCurrent) {
	String strRC = strValue;
	if (Profiler.isEnabled()) {
		ProfilerAggregator pa = Profiler.startProfileBlock(pt, "getPerson");
		long startTime = Profiler.getCurrentTime();
		try {
			strRC = _getPerson(def, strValue, sesCurrent);
		} finally {
			Profiler.endProfileBlock(pa, startTime);
		}
	} else {
		strRC = _getPerson(def, strValue, sesCurrent);

	}
	return strRC;
}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:17,代码来源:NamesProcessor.java

示例5: processAjaxRequest

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public void processAjaxRequest(FacesContext context) throws IOException {
	if (Profiler.isEnabled()) {
		String svc = context.getExternalContext().getRequestServletPath()
				+ context.getExternalContext().getRequestPathInfo();
		ProfilerAggregator agg = Profiler.startProfileBlock(profilerRemoteService, svc);
		long ts = Profiler.getCurrentTime();
		try {
			_processAjaxRequest(context);
		} finally {
			Profiler.endProfileBlock(agg, ts);
		}
	} else {
		_processAjaxRequest(context);
	}
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:16,代码来源:UIJsonRpcService.java

示例6: processAjaxRequest

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public void processAjaxRequest(FacesContext context) throws IOException {
    if( Profiler.isEnabled()) {
    	String svc = context.getExternalContext().getRequestServletPath()+ context.getExternalContext().getRequestPathInfo(); 
        ProfilerAggregator agg = Profiler.startProfileBlock(profilerRestService,svc);
        long ts = Profiler.getCurrentTime();
        try {
	    	_processAjaxRequest(context);
        } finally {
            Profiler.endProfileBlock(agg,ts);
        }
    } else {
    	_processAjaxRequest(context);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:15,代码来源:UIBaseRestService.java

示例7: processDocument

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public void processDocument(Document docProcess, Object objCurrent) throws NotesException {
	if (Profiler.isEnabled()) {
		ProfilerAggregator pa = Profiler.startProfileBlock(PROFILERTYPE, "processDocument");
		long startTime = Profiler.getCurrentTime();
		try {
			_processDocument(docProcess, objCurrent);
		} finally {
			Profiler.endProfileBlock(pa, startTime);
		}
	} else {
		_processDocument(docProcess, objCurrent);
	}

}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:15,代码来源:Domino2JavaBinder.java

示例8: _processDocument

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
private void _processDocument(Document docProcess, Object objCurrent) throws NotesException {
	for (Definition defCurrent : m_Definition) {
		if (Profiler.isEnabled()) {
			ProfilerAggregator pa = Profiler.startProfileBlock(PROFILERTYPE, "processDefinition - " + defCurrent.getBinder().getClass().getCanonicalName());
			long startTime = Profiler.getCurrentTime();
			try {
				_processDefinition(docProcess, objCurrent, defCurrent);
			} finally {
				Profiler.endProfileBlock(pa, startTime);
			}
		} else {
			_processDefinition(docProcess, objCurrent, defCurrent);
		}
	}
}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:16,代码来源:Domino2JavaBinder.java

示例9: encrypt

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public static String encrypt(String strValue, SecretKeySpec key) {
	if (Profiler.isEnabled()) {
		ProfilerAggregator pa = Profiler.startProfileBlock(PROFILERTYPE, "encrypt");
		long startTime = Profiler.getCurrentTime();
		try {
			return _encrypt(strValue, key);
		} finally {
			Profiler.endProfileBlock(pa, startTime);
		}

	} else {
		return _encrypt(strValue, key);
	}
}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:15,代码来源:EncryptionFactory.java

示例10: decrypt

import com.ibm.commons.util.profiler.ProfilerAggregator; //导入依赖的package包/类
public static String decrypt(String strHash, SecretKeySpec key) throws DSSException {
	if (Profiler.isEnabled()) {
		ProfilerAggregator pa = Profiler.startProfileBlock(PROFILERTYPE, "encrypt");
		long startTime = Profiler.getCurrentTime();
		try {
			return _decrypt(strHash, key);
		} finally {
			Profiler.endProfileBlock(pa, startTime);
		}

	} else {
		return _decrypt(strHash, key);
	}

}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:16,代码来源:EncryptionFactory.java


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