EccTrxCmd logWSCall = new EccTrxCmd() {
long startTime = System.currentTimeMillis();
@Override
protected void executeHelper() throws EppicExceptions, SQLException {
int duration = (int) (System.currentTimeMillis() - startTime);
WsTransaction wsTrx = wsTrxMgr.getInstance(new Timestamp(startTime), type.typeId, duration, totalCount,
failCount, transRefID);
wsTrx.setNew(true);
wsTrxMgr.save(_conn, wsTrx);
}
@Override
protected void initAccount() throws EppicExceptions, SQLException {
}
};
本文介绍了一个名为 EccTrxCmdlogWSCall 的类实现,该类用于记录 Web 服务调用的详细信息,包括启动时间、持续时长等,并将这些信息保存到数据库中。通过此类可以有效地跟踪和管理 Web 服务交易。
1530

被折叠的 条评论
为什么被折叠?



