|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.server.RepositoryServer
public class RepositoryServer
Primitive Winstone servlet container launcher for Sofa repository.
Field Summary | |
---|---|
static java.lang.String |
REPOSITORY_DEFAULT_PORT
Default port the repository listening on |
static java.lang.String |
REPOSITORY_PATH_PROPERTY
System property name for setting repository directory root. |
static java.lang.String |
REPOSITORY_PORT_PROPERTY
System property name for setting repository server listening port. |
static java.lang.String |
REPOSITORY_WEBAPP_PATH_PROPERTY
System property name for setting repository web application war path |
Constructor Summary | |
---|---|
RepositoryServer()
|
Method Summary | |
---|---|
static int |
getFreePort(int startingPort)
check that the port is free and otherwise get a free one |
static void |
main(java.lang.String[] args)
|
static boolean |
startNewAutoconfiguredServer(int repositoryPort,
int zeroConfPort)
Launches the repository server and registers it to a new ZeroConf server. |
static boolean |
startNewAutoconfiguredServer(java.lang.String repositoryPath,
java.lang.String webappPath,
int repositoryPort,
int zeroConfPort)
Launches the repository server and registers it to a new ZeroConf server. |
static boolean |
startNewServer()
Launches the repository server. |
static boolean |
startNewServer(java.lang.String repositoryPath,
java.lang.String webappPath,
java.lang.String repositoryPort)
Launches the repository server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REPOSITORY_PATH_PROPERTY
public static final java.lang.String REPOSITORY_PORT_PROPERTY
public static final java.lang.String REPOSITORY_WEBAPP_PATH_PROPERTY
public static final java.lang.String REPOSITORY_DEFAULT_PORT
Constructor Detail |
---|
public RepositoryServer()
Method Detail |
---|
public static boolean startNewServer()
true
if the repository has been successfully launchedpublic static boolean startNewServer(java.lang.String repositoryPath, java.lang.String webappPath, java.lang.String repositoryPort)
repositoryPath
- Relative path to repository directory.webappPath
- Path to warfile. Default "repositorywebapp.war".repositoryPort
- Port on which the server will run. Default 8173.
true
if the repository has been successfully launchedpublic static int getFreePort(int startingPort)
public static boolean startNewAutoconfiguredServer(int repositoryPort, int zeroConfPort)
repositoryPort
- Port on which the server will run. Default 8173.
true
if the repository has been successfully launchedpublic static boolean startNewAutoconfiguredServer(java.lang.String repositoryPath, java.lang.String webappPath, int repositoryPort, int zeroConfPort)
repositoryPath
- Relative path to repository directory.webappPath
- Path to warfile. Default "repositorywebapp.war".repositoryPort
- Port on which the server will run. Default 8173.
true
if the repository has been successfully launchedpublic static void main(java.lang.String[] args)
args
- 0 - zeroConfPort - not mandatory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |