|
SQLFire 1.0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NetworkInterface
Encapsulates a network listener that clients can use to connect using
SQLFire JDBC client driver (URL of the form
'jdbc:sqlfire://<host>:<port>'). A new interface can be created
using FabricService.startNetworkServer(String, int, Properties) -- see
FabricServer API for details.
FabricServer| Nested Class Summary | |
|---|---|
static interface |
NetworkInterface.ConnectionListener
A listener which can be registered on NetworkInterface
in order to receive events about connections created or destroyed for a
client on the DRDA network server. |
| Method Summary | |
|---|---|
String |
asString()
Get the string representation of this NetworkInterface in
'<host>/<bind-address>[<port>]' format. |
Properties |
getCurrentProperties()
Get current Network server properties |
String |
getHostName()
Get the host name of this network server. |
int |
getMaxThreads()
Returns the current maxThreads setting for the running Network Server |
int |
getPort()
Get the port of this network server. |
String |
getRuntimeInfo()
Return detailed session runtime information about sessions, prepared statements, and memory usage for the running Network Server. |
String |
getSysinfo()
Return classpath and version information about the running Network Server. |
int |
getTimeSlice()
Return the current timeSlice setting for the running Network Server |
int |
getTotalConnections()
Get the total number of current connections to this network server. |
void |
logConnections(boolean on)
Turn logging connections on or off. |
void |
setConnectionListener(NetworkInterface.ConnectionListener listener)
Set a new NetworkInterface.ConnectionListener for this network server. |
void |
setMaxThreads(int max)
Set Network Server maxthread parameter. |
void |
setTimeSlice(int timeslice)
Set Network Server connection time slice parameter. |
void |
setTraceDirectory(String traceDirectory)
Set directory for trace files. |
boolean |
status()
Whether the network server is listening on the configured port or not. |
void |
stop()
Stop listening on network clients on this network server control. |
void |
trace(boolean on)
Turn tracing on or off for all sessions on the Network Server. |
void |
trace(int connNum,
boolean on)
Turn tracing on or off for the specified connection on the Network Server. |
| Method Detail |
|---|
void stop()
boolean status()
void trace(boolean on)
on - true to turn tracing on, false to turn tracing off.
void trace(int connNum,
boolean on)
connNum - connection number. Note: Connection numbers will print in the
SQLFire error log if logConnections is on.on - true to turn tracing on, false to turn tracing off.void logConnections(boolean on)
on - true to turn on, false to turn offvoid setTraceDirectory(String traceDirectory)
traceDirectory - directory for trace files on machine where server is runningvoid setConnectionListener(NetworkInterface.ConnectionListener listener)
NetworkInterface.ConnectionListener for this network server. This will
replace any old listener if any.
listener - the NetworkInterface.ConnectionListener to be addedString getSysinfo()
String getRuntimeInfo()
void setMaxThreads(int max)
max - maximum number of connection threads. If <= 0, connection threads
will be created when there are no free connection threads.setTimeSlice(int)int getMaxThreads()
setMaxThreads(int)void setTimeSlice(int timeslice)
timeslice - number of milliseconds given to each session before yielding to
another session, if <=0, never yield.setMaxThreads(int)int getTimeSlice()
setTimeSlice(int)Properties getCurrentProperties()
String asString()
NetworkInterface in
'<host>/<bind-address>[<port>]' format.
int getTotalConnections()
String getHostName()
int getPort()
|
SQLFire 1.0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||