public class ServerConfigHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerConfigHelper.NameAlreadyUsedException |
static class |
ServerConfigHelper.ServerIdAlreadyUsedException |
static class |
ServerConfigHelper.StartFailureException |
Modifier and Type | Field and Description |
---|---|
private boolean |
autoCommit |
private static org.objectweb.util.monolog.api.Logger |
logger |
Constructor and Description |
---|
ServerConfigHelper(boolean autoCommit) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDomain(String domainName,
String network,
int routerId,
int port) |
void |
addServer(int sid,
String hostName,
String domainName,
int port,
String name) |
void |
addService(int sid,
String className,
String args) |
void |
commit() |
boolean |
removeDomain(String domainName) |
void |
removeServer(int sid) |
void |
removeService(int sid,
String className) |
private static org.objectweb.util.monolog.api.Logger logger
private boolean autoCommit
public boolean addDomain(String domainName, String network, int routerId, int port) throws Exception
Exception
public void addServer(int sid, String hostName, String domainName, int port, String name) throws Exception
Exception
public void addService(int sid, String className, String args) throws Exception
Exception
public void removeService(int sid, String className) throws Exception
Exception
Copyright © 2019 ScalAgent D.T.. All rights reserved.