TaskRequestHandler { public static TaskRequestHandler getInstance() { return instance; } private  TaskRequestHandler(); static TaskRequestHandler getInstance(); void initailizeServerThreadPool(); void initailizeMonitoringThreadPool(); void executeServerTask( TaskType type, TaskResponse node ); void executeMonitorTask( TaskType type, TaskResponse node ); void shutMonitoring(); void restratMonitoring(); void destroy(); public CompletionService<TaskResponse> taskCompService; public CompletionService<TaskResponse> monitorCompService; }
@Test public void testGetInstance() { System.out.println( "getInstance" ); TaskRequestHandler result = TaskRequestHandler.getInstance(); assertNotNull( result ); }