本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}