OLib 는 java 프로젝트를 진행할 경우 유용하게 쓰일 수 있는 Tool 및 Library 입니다.
- olib-framework-app : 어플리케이션 패키지
- olib-framework-core : 어플리케이션에서 사용될 공통 library
- olib-app-admin : naver,daum ad openapi test tool, 시스템 로그 분석 도구
- olib-app-agent : 서버 매니저 관리도구
- olib-app-threadpool : thread pool 서비스 모듈
- Api Testing Tools
- Server Agent Management Tools
- System Log Search Tools
- Thread pool service (java 1.8+)
- exception, json, net utils
public static void main(String[] args) {
String poolName = "test-pool";
int maxThreadSize = 2;
OlibThreadPoolService service = new OlibThreadPoolService(poolName, maxThreadSize);
String key = "testThread";
int threadCount = 5;
for(int i=0; i<threadCount; i++){
TestThread thread = new TestThread();
service.start(thread , key+i);
}
}
public class TestThread extends Thread{
public TestThread(){}
public void run(){
System.out.println("start : "+this.currentThread().getName());
try {Thread.sleep(5000);} catch (InterruptedException e) {}
System.out.println("end : "+this.currentThread().getName());
}
}
start : test-pool-testThread0-0
start : test-pool-testThread1-0
end : test-pool-testThread0-0
end : test-pool-testThread1-0
start : test-pool-testThread2-0
start : test-pool-testThread3-0
end : test-pool-testThread2-0
end : test-pool-testThread3-0
start : test-pool-testThread4-0
end : test-pool-testThread4-0
- spring-boot
- gentelella
- angularjs
- jquery
- bootstrap
- font-awesome
- json-simple
- httpclient
- reflections
- paranamer
- unirest
- axis2
- h2