Skip to content

ossang/olib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Olib

OLib 는 java 프로젝트를 진행할 경우 유용하게 쓰일 수 있는 Tool 및 Library 입니다.

Module description

  • olib-framework-app : 어플리케이션 패키지
  • olib-framework-core : 어플리케이션에서 사용될 공통 library
  • olib-app-admin : naver,daum ad openapi test tool, 시스템 로그 분석 도구
  • olib-app-agent : 서버 매니저 관리도구
  • olib-app-threadpool : thread pool 서비스 모듈

Features

  • Api Testing Tools
  • Server Agent Management Tools
  • System Log Search Tools
  • Thread pool service (java 1.8+)
  • exception, json, net utils

Api Testing Tools DEMO

api tool

Server Agent Management Tools DEMO

agentmanager

System Log Search Tools DEMO

log tool

Thread Pool Service Example

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

dependencies

  • spring-boot
  • gentelella
  • angularjs
  • jquery
  • bootstrap
  • font-awesome
  • json-simple
  • httpclient
  • reflections
  • paranamer
  • unirest
  • axis2
  • h2