Posted by: Jawaan July 31, 2012
Login in to Rate this Post:
0
?
i have been a professional programmer for 7 years ...you say u code ..is this ur code of conduct ..u bad mouthed me when i wanted to see what u got ? and u said tathastu..dude getting few high level words from internet and putting it together to show ur intellectual level ..does not mean shit ...ur intellectual level is determined by ur personality ...If u consider urself a true programmer got read "Programming Code ethic "
explain what does this code do :
explain what does this code do :
int threadCount = ADJOverrides.getInstance().getIntProperty("vpwfileloaderagent.threads");
List<String> handlerIdList = ProxyFactory.newInstance(GetHandlerIdDAO.class).find(); // list of distinct handler id
log.info("HANDLER ID LIST "+ handlerIdList);
List<VpwFileProcessThread> threads = new ArrayList<VpwFileProcessThread>();
for(int i= 0, j = 1; i < handlerIdList.size() ; i++,j++)
{
processList =ProxyFactory.newInstance(ProcessVpwFileDAO.class).find(handlerIdList.get(i));
log.info("PROCESSLIST : " + processList);
VpwFileProcessThread vpwFileProcessThread = new VpwFileProcessThread(processList,aContext);
threads.add(vpwFileProcessThread);
if(j % threadCount == 0 || (j == handlerIdList.size()))
{
List<Thread> threadList = ThreadUtils.launchThreads(threads, "VpwFileProcessThread");
ThreadUtils.joinThreads(threadList);
threads.clear();
}
// DON'T JUST BARK KID PROVE IT
// DON'T JUST BARK KID PROVE IT