|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.ConnectionData
Provides a linkage between the Servant and JTella. ConnectionInformation is used
by NetConnection
and others in determining current parameters settable
by the Servant application.
Field Summary | |
private java.lang.String |
connectionGreeting
|
private int |
DROP_CHECK
|
private double |
DROP_RATE
|
private int |
incommingConnectionCount
|
private int |
incommingConnectionPort
|
private int |
outgoingConnectionCount
|
private int |
sharedFileCount
|
private int |
sharedFileSize
|
private int |
SLEEP_INTERVAL
|
private java.lang.String |
vendorCode
|
Constructor Summary | |
ConnectionData()
|
Method Summary | |
java.lang.String |
getConnectionGreeting()
Get the connection handshake greeting |
long |
getDropCheck()
|
double |
getDropRate()
|
int |
getIncomingPort()
Get the port to used for incoming connections Defaults to 6346. |
int |
getIncommingConnectionCount()
Get the requested number of incomming connection return requested incomming connection count |
int |
getOutgoingConnectionCount()
Returns the requested number of outgoing connections |
int |
getSharedFileCount()
Get the value for shared file count |
int |
getSharedFileSize()
Get the value for shared file size, this is the total size of shared files |
int |
getSleepInterval()
|
java.lang.String |
getVendorCode()
Get Vendor code for use in QueryReply messages. |
void |
setConnectionGreeting(java.lang.String greeting)
Set the connection handshake greeting. |
void |
setDrop(int DROP_CHECK,
double DROP_RATE,
int SLEEP_INTERVAL)
|
void |
setIncomingPort(int port)
Set the port to used for incomming connections. |
void |
setIncommingConnectionCount(int count)
Set the requesting number of incomming connections. |
void |
setOutgoingConnectionCount(int count)
Set the requested number of outgoing connections. |
void |
setSharedFileCount(int count)
Set the value for current number of shared files Defaults to zero |
void |
setSharedFileSize(int size)
Set the value for shared file size Defaults to zero |
void |
setVendorCode(java.lang.String vendorCode)
Set Vendor code for use in QueryReply messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int outgoingConnectionCount
private int incommingConnectionCount
private int incommingConnectionPort
private int sharedFileCount
private int sharedFileSize
private java.lang.String connectionGreeting
private java.lang.String vendorCode
private int DROP_CHECK
private double DROP_RATE
private int SLEEP_INTERVAL
Constructor Detail |
public ConnectionData()
Method Detail |
public void setDrop(int DROP_CHECK, double DROP_RATE, int SLEEP_INTERVAL)
public long getDropCheck()
public int getSleepInterval()
public double getDropRate()
public int getOutgoingConnectionCount()
public void setOutgoingConnectionCount(int count)
count
- count of desired output connectionspublic int getIncommingConnectionCount()
public void setIncommingConnectionCount(int count)
count
- count of requested incomming connectionspublic int getIncomingPort()
NetworkConnection
public void setIncomingPort(int port)
NetworkConnection
public int getSharedFileCount()
public void setSharedFileCount(int count)
count
- number of shared filespublic int getSharedFileSize()
public void setSharedFileSize(int size)
size
- size of shared files in KBpublic java.lang.String getConnectionGreeting()
public void setConnectionGreeting(java.lang.String greeting)
greeting
- public java.lang.String getVendorCode()
public void setVendorCode(java.lang.String vendorCode)
vendorCode
- 4 character code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |