public class DistributedServerConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PRINTER |
static String |
PRINTER_DATE |
static String |
PRINTER_FILE |
static String |
PRINTER_FILE_DATE |
static String[] |
printerTags |
| Constructor and Description |
|---|
DistributedServerConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServer(TcpActiveMachine act) |
static DistributedServerConfig |
getConfig(File file) |
protected static TcpActiveMachine |
getMachine(File file,
Element server) |
int |
getMaxCurrentConn() |
String |
getName() |
com.daioware.stream.Printer |
getPrinter() |
protected static com.daioware.stream.Printer |
getPrinter(File file,
Element xmlServ) |
ArrayList<TcpActiveMachine> |
getServers() |
com.daioware.net.socket.TCPServSocket |
getServSocket() |
int |
getUdpInputPort() |
int |
getUdpOutputPort() |
void |
setMaxCurrentConn(int maxCurrentConn) |
void |
setName(String name) |
void |
setPrinter(com.daioware.stream.Printer p) |
void |
setServers(ArrayList<TcpActiveMachine> servers) |
void |
setServSocket(com.daioware.net.socket.TCPServSocket servSocket) |
void |
setUdpInputPort(int udpInputPort) |
void |
setUdpOutputPort(int udpOutputPort) |
String |
toString() |
public static final String PRINTER
public static final String PRINTER_DATE
public static final String PRINTER_FILE
public static final String PRINTER_FILE_DATE
public static final String[] printerTags
public int getMaxCurrentConn()
public void setMaxCurrentConn(int maxCurrentConn)
public com.daioware.net.socket.TCPServSocket getServSocket()
public void setServSocket(com.daioware.net.socket.TCPServSocket servSocket)
public int getUdpInputPort()
public void setUdpInputPort(int udpInputPort)
public int getUdpOutputPort()
public void setUdpOutputPort(int udpOutputPort)
public ArrayList<TcpActiveMachine> getServers()
public void setServers(ArrayList<TcpActiveMachine> servers)
public void setPrinter(com.daioware.stream.Printer p)
public com.daioware.stream.Printer getPrinter()
public String getName()
public void setName(String name)
public void addServer(TcpActiveMachine act)
protected static TcpActiveMachine getMachine(File file, Element server) throws ParserConfigurationException, SAXException, IOException
public static DistributedServerConfig getConfig(File file) throws SAXException, IOException, ParserConfigurationException
Copyright © 2017. All rights reserved.