|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robotframework.remoteserver.RemoteServer
public class RemoteServer
Remote server for Robot Framework implemented in Java. Takes one or more test libraries and exposes their methods via XML-RPC using an embedded web server.
| Field Summary | |
|---|---|
protected Map<Integer,Class<?>> |
libraryMap
|
| Constructor Summary | |
|---|---|
RemoteServer()
|
|
| Method Summary | |
|---|---|
void |
addLibrary(Class<?> clazz,
int port)
Map the given test library to the specified port. |
void |
addLibrary(String className,
int port)
Map the given test library to the specified port. |
static void |
configureLogging()
Configures logging systems used by RemoteServer and its dependencies. |
protected javax.servlet.Servlet |
createServlet()
|
boolean |
getAllowStop()
|
String |
getHost()
|
static void |
main(String[] args)
|
void |
setAllowStop(boolean allowed)
|
void |
setHost(String hostName)
Set the hostname of the interface to bind to. |
void |
start()
Starts the remote server. |
void |
stop()
Stops the remote server immediately. |
void |
stop(int timeoutMS)
A non-blocking method for stopping the remote server that allows requests to complete within the given timeout before shutting down the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Integer,Class<?>> libraryMap
| Constructor Detail |
|---|
public RemoteServer()
| Method Detail |
|---|
public boolean getAllowStop()
public void setAllowStop(boolean allowed)
allowed - whether to allow stopping the server remotelypublic String getHost()
setHost(String)public void setHost(String hostName)
hostName - the hostname or address representing the interface to which all connectors will bind, or null for all
interfaces.
public static void main(String[] args)
throws Exception
Exception
public void addLibrary(String className,
int port)
className - class name of the test libraryport - port to map the test library to
public void addLibrary(Class<?> clazz,
int port)
clazz - class of the test libraryport - port to map the test library to
public void stop(int timeoutMS)
throws Exception
timeoutMS - the milliseconds to wait for existing request to complete before stopping the server
Exception
public void stop()
throws Exception
Exception
public void start()
throws Exception
Exceptionpublic static void configureLogging()
Logger and Log, so this should be called
as early as possible.
protected javax.servlet.Servlet createServlet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||