|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.radrails.server.core.Server
org.radrails.server.core.webrick.WEBrickServer
Concrete implementation of a WEBrick server. Uses the script/server file in the associated project directory to run the server.
Constructor Summary | |
WEBrickServer(java.io.File project)
Constructor. |
|
WEBrickServer(java.io.File project,
java.lang.String name,
java.lang.String port)
Constructor. |
|
WEBrickServer(java.io.File project,
java.lang.String name,
java.lang.String port,
java.lang.String environment)
Constructor. |
Method Summary | |
void |
start()
Starts the server. |
void |
stop()
Stops the server. |
Methods inherited from class org.radrails.server.core.Server |
getEnvironment, getName, getPort, getProject, getStatus, getType, isStarted, isStopped, touch, updateEnvironment, updateName, updatePort, updateStatus |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WEBrickServer(java.io.File project, java.lang.String name, java.lang.String port, java.lang.String environment)
project
- the location of the project the server is associated withname
- the name of the serverpublic WEBrickServer(java.io.File project, java.lang.String name, java.lang.String port)
project
- the location of the project the server is associated withname
- the name of the serverport
- the number of the port the server runs onpublic WEBrickServer(java.io.File project)
project
- the location of the project the server is associated withMethod Detail |
public void start()
Server
setChanged
and
notifyObservers
after the server is started.
Pass {IServerConstants.UPDATE
as the second argument to
notifyObservers
.
start
in class Server
public void stop()
Server
setChanged
and
notifyObservers
after the server is started.
Pass IServerConstants.UPDATE
as the second argument to
notifyObservers
.
stop
in class Server
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |