All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tacitknowledge.slowlight.proxyserver.config.SlowlightConfig Maven / Gradle / Ivy

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; } }