com.tacitknowledge.slowlight.proxyserver.config.SlowlightConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of slowlight-proxy Show documentation
Show all versions of slowlight-proxy Show documentation
Standalone proxy tool for creating issues with synchronous RPC calls
The newest version!
package com.tacitknowledge.slowlight.proxyserver.config;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* This class represents a slowlight server configuration model.
* To configure slowlight server you have to specify serverTypes (a mapping between server type name (alias) and
* fully qualified class name which provides the server implementation) and servers that follow to be configured and
* started by slowlight (for more details see {@link com.tacitknowledge.slowlight.proxyserver.config.ServerConfig}).
*
*
* An example of slowlight server configuration (JSON)
*
* {@code
* {
* serverTypes : {
* "simple" : "com.tacitknowledge.slowlight.proxyserver.server.simple.SimpleServer",
* "proxy" : "com.tacitknowledge.slowlight.proxyserver.server.proxy.ProxyServer"
* },
* "servers" : [
* ...
* ]
* }
* }
*
* @author Alexandr Donciu ([email protected])
* */
public class SlowlightConfig extends ParameterizedConfig
{
private Map serverTypes;
private List servers = new ArrayList();
public Map getServerTypes()
{
return serverTypes;
}
public void setServerTypes(final Map serverTypes)
{
this.serverTypes = serverTypes;
}
public List getServers()
{
return servers;
}
public void setServers(final List servers)
{
this.servers = servers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy