@Test public void testStartService() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); try { dirPollAdaptor.startService(); } catch (IllegalStateException e) { assertNull(dirPollAdaptor.dirPoll, "dirPollAdaptor.dirPoll"); } }
protected void startService () throws Exception { if (dirPoll == null) { throw new IllegalStateException("Not initialized!"); } synchronized (dirPoll) { dirPollThread = new Thread(dirPoll); dirPollThread.start(); } }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { protected void startService () throws Exception { if (dirPoll == null) { throw new IllegalStateException("Not initialized!"); } synchronized (dirPoll) { dirPollThread = new Thread(dirPoll); dirPollThread.start(); } } }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { protected void startService () throws Exception { if (dirPoll == null) { throw new IllegalStateException("Not initialized!"); } synchronized (dirPoll) { dirPollThread = new Thread(dirPoll); dirPollThread.start(); } } DirPollAdaptor(); }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { protected void startService () throws Exception { if (dirPoll == null) { throw new IllegalStateException("Not initialized!"); } synchronized (dirPoll) { dirPollThread = new Thread(dirPoll); dirPollThread.start(); } } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval); long getPollInterval(); synchronized void setPriorities(String priorities); String getPriorities(); synchronized void setProcessor(String processor); String getProcessor(); }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { protected void startService () throws Exception { if (dirPoll == null) { throw new IllegalStateException("Not initialized!"); } synchronized (dirPoll) { dirPollThread = new Thread(dirPoll); dirPollThread.start(); } } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval); long getPollInterval(); synchronized void setPriorities(String priorities); String getPriorities(); synchronized void setProcessor(String processor); String getProcessor();  }