|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.msi.network.connection.TCPInterface
A ServiceInterface support the TCP/IP protocol.
| Field Summary | |
private int |
backlog
|
private long |
connTO
|
private boolean |
isSSL
|
private int |
maxConnections
|
private int |
openConnections
|
private int |
port
|
private java.net.ServerSocket |
sock
|
| Fields inherited from interface com.msi.network.connection.ServiceInterface |
TCP, UDP |
| Fields inherited from interface com.msi.network.connection.ConnectionConstants |
defaultBacklog, defaultMaxConnections |
| Constructor Summary | |
private |
TCPInterface()
|
|
TCPInterface(int port,
int maxConnections)
TCPInterface - |
|
TCPInterface(int port,
int maxConnections,
boolean isSSL)
Creates a new TCPInterface instance. |
|
TCPInterface(int port,
int maxConnections,
long cTO)
TCPInterface - |
|
TCPInterface(int port,
int maxConnections,
long cTO,
boolean isSSL)
Creates a new TCPInterface instance. |
| Method Summary | |
void |
close()
close - |
void |
connectionClosed()
closeConnection - close the previously allocated connection,
adjusting the number of openConnections accordingly. |
int |
getBacklog()
Get the value of backlog. |
Connection |
getConnection()
getConnection - |
long |
getConnTO()
Get the value of connTO. |
int |
getMaxConnections()
Gets the value of maxConnections |
int |
getOpenConnections()
Gets the value of openConnections |
int |
getPort()
Gets the value of port |
java.net.ServerSocket |
getSock()
Gets the value of sock |
boolean |
isIsSSL()
Get the value of isSSL. |
private java.net.ServerSocket |
makeServerSocket(int port,
int backlog,
boolean isSSL)
|
void |
setBacklog(int v)
Set the value of backlog. |
void |
setConnTO(long v)
Set the value of connTO. |
void |
setIsSSL(boolean v)
Set the value of isSSL. |
void |
setMaxConnections(int argMaxConnections)
Sets the value of maxConnections |
void |
setOpenConnections(int argOpenConnections)
Sets the value of openConnections |
void |
setPort(int argPort)
Sets the value of port |
void |
setSock(java.net.ServerSocket argSock)
Sets the value of sock |
java.lang.String |
statsString()
statsString - present the current state as a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean isSSL
private int backlog
private int port
private java.net.ServerSocket sock
private int openConnections
private int maxConnections
private long connTO
| Constructor Detail |
private TCPInterface()
public TCPInterface(int port,
int maxConnections)
TCPInterface -
port - an int valuemaxConnections - an int value
public TCPInterface(int port,
int maxConnections,
boolean isSSL)
TCPInterface instance.
port - an int valuemaxConnections - an int valueisSSL - a boolean value
public TCPInterface(int port,
int maxConnections,
long cTO)
TCPInterface -
port - an int valuemaxConnections - an int valuecTO - a long value
public TCPInterface(int port,
int maxConnections,
long cTO,
boolean isSSL)
TCPInterface instance.
port - an int valuemaxConnections - an int valuecTO - a long valueisSSL - a boolean value| Method Detail |
private java.net.ServerSocket makeServerSocket(int port,
int backlog,
boolean isSSL)
throws java.lang.Exception
java.lang.Exceptionpublic Connection getConnection()
getConnection -
getConnection in interface ServiceInterfaceConnection valuepublic void connectionClosed()
closeConnection - close the previously allocated connection,
adjusting the number of openConnections accordingly.
public void close()
close -
close in interface ServiceInterfacepublic java.lang.String statsString()
statsString - present the current state as a String.
String representation of interface state.public int getBacklog()
public void setBacklog(int v)
v - Value to assign to backlog.public int getPort()
public void setPort(int argPort)
argPort - Value to assign to this.portpublic java.net.ServerSocket getSock()
public void setSock(java.net.ServerSocket argSock)
argSock - Value to assign to this.sockpublic int getOpenConnections()
public void setOpenConnections(int argOpenConnections)
argOpenConnections - Value to assign to this.openConnectionspublic int getMaxConnections()
public void setMaxConnections(int argMaxConnections)
argMaxConnections - Value to assign to this.maxConnectionspublic long getConnTO()
public void setConnTO(long v)
v - Value to assign to connTO.public boolean isIsSSL()
public void setIsSSL(boolean v)
v - Value to assign to isSSL.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||