|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.sandia.ccaffeine.dc.user_iface.applet.RemoteServer
public class RemoteServer
A confusing name: RemoteServer is an object that stands for a Remote server.
Field Summary | |
---|---|
protected long |
numberOfMillisecondsBetweenConnectionAttempts
|
protected int |
numberOfTimesWeTryToConnectToCca
|
protected int |
timeout
|
Constructor Summary | |
---|---|
RemoteServer()
|
Method Summary | |
---|---|
void |
createConnection()
Connect to the cca MUXER. |
java.lang.String |
getHost()
Get the host name for the server. |
java.io.InputStream |
getInputStream()
Get the InputStream to the server. |
java.io.OutputStream |
getOutputStream()
Get the OutputStream from the server. |
int |
getPort()
Get the port for the server. |
int |
getTimeout()
Get the number of milliseconds a read operation will wait. |
void |
setHost(java.lang.String host)
Set the host name for the server. |
void |
setPort(int serverPort)
Set the port for the server. |
void |
setTimeout(int timeout)
Set the number of milliseconds a read operation will wait. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int numberOfTimesWeTryToConnectToCca
protected final long numberOfMillisecondsBetweenConnectionAttempts
protected int timeout
Constructor Detail |
---|
public RemoteServer()
Method Detail |
---|
public void createConnection() throws java.net.ConnectException
Throws
- ConnectionExcpetion
if a connection to the MUXER can NOT be established.
java.net.ConnectException
public void setHost(java.lang.String host)
public java.lang.String getHost()
public void setPort(int serverPort)
public int getPort()
public java.io.OutputStream getOutputStream()
public java.io.InputStream getInputStream()
public int getTimeout()
public void setTimeout(int timeout)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |