|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.network.ConnectionEvent
public class ConnectionEvent
Wraps the information describing a connection modification.
| Field Summary | |
|---|---|
static int |
DROPPED_PORT
The value for the port when the event represents a dropped connection. |
static boolean |
DROPPED_SSL
The SSL value for when the event represents a dropped connection. |
| Constructor Summary | |
|---|---|
ConnectionEvent(java.lang.String host)
|
|
ConnectionEvent(java.lang.String host,
int port,
boolean ssl)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
Gets the host name of the server. |
int |
getPort()
Returns the port number over which the server communicates. |
long |
getTimestamp()
Gets the timestamp the event occurred. |
boolean |
isSSL()
Returns whether the host in question communicates over SSL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DROPPED_PORT
The value for the port when the event represents a dropped connection.
public static final boolean DROPPED_SSL
The SSL value for when the event represents a dropped connection.
| Constructor Detail |
|---|
public ConnectionEvent(java.lang.String host,
int port,
boolean ssl)
host - A host nameport - A port numberssl - Whether the server communicates over SSLpublic ConnectionEvent(java.lang.String host)
host - A host name| Method Detail |
|---|
public java.lang.String getHost()
Gets the host name of the server.
public int getPort()
Returns the port number over which the server communicates.
public boolean isSSL()
Returns whether the host in question communicates over SSL.
public long getTimestamp()
Gets the timestamp the event occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||