public class WattDepotServer extends Object
Constructor and Description |
---|
WattDepotServer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
WattDepotPersistence |
getDepot() |
WattDepotComponent |
getRestletServer() |
ServerProperties |
getServerProperties() |
static void |
main(String[] args) |
static WattDepotServer |
newInstance()
Creates a new instance of the WattDepot server.
|
static WattDepotServer |
newInstance(ServerProperties properties)
Creates a new instance of the WattDepot server.
|
static WattDepotServer |
newInstance(String serverSubdir)
Creates a new instance of the WattDepot server.
|
static WattDepotServer |
newTestInstance()
Creates a new WattDepotServer suitable for unit testing.
|
void |
stop()
Stops the WattDepotServer.
|
public static WattDepotServer newInstance() throws Exception
Exception
- if there is a problem starting the server.public static WattDepotServer newInstance(String serverSubdir) throws Exception
serverSubdir
- The name of the directory containing the server's files.Exception
- if there is a problem starting the server.public static WattDepotServer newInstance(ServerProperties properties) throws Exception
properties
- The ServerProperties used to initialize this server.Exception
- if there is a problem starting the server.public static WattDepotServer newTestInstance() throws Exception
Exception
- if there is a problem initializing the server.public WattDepotComponent getRestletServer()
public WattDepotPersistence getDepot()
public ServerProperties getServerProperties()
public void stop() throws Exception
Exception
- if there is a problem stopping the different servers.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.