|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consol.citrus.server.AbstractServer
public abstract class AbstractServer
Abstract base class for Server implementations.
| Constructor Summary | |
|---|---|
AbstractServer()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
String |
getName()
Get server name. |
boolean |
isAutoStart()
Gets the autoStart. |
boolean |
isRunning()
Is server running. |
void |
join()
Join server thread. |
void |
run()
Subclasses may overwrite this method in order to add special execution logic. |
void |
setAutoStart(boolean autoStart)
Enable/disable server auto start |
void |
setBeanName(String name)
|
void |
setName(String name)
Sets the name. |
void |
setRunning(boolean running)
Sets the running. |
protected abstract void |
shutdown()
Subclasses must implement this method called on server shutdown. |
void |
start()
Start the server |
protected abstract void |
startup()
Subclasses must implement this method called on server startup. |
void |
stop()
Stop the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractServer()
| Method Detail |
|---|
public void start()
Server
start in interface ServerServer.start()public void stop()
Server
stop in interface ServerServer.stop()public void run()
run in interface Runnableprotected abstract void startup()
protected abstract void shutdown()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionDisposableBean.destroy()public void join()
public String getName()
Server
getName in interface ServerServer.getName()public boolean isRunning()
Server
isRunning in interface ServerServer.isRunning()public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareBeanNameAware.setBeanName(java.lang.String)public void setAutoStart(boolean autoStart)
autoStart - the autoStart to setpublic boolean isAutoStart()
public void setName(String name)
name - the name to setpublic void setRunning(boolean running)
running - the running to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||