public interface NetworkInterface
FabricService.startNetworkServer(String, int, Properties) -- see
FabricServer API for details.FabricServer| Modifier and Type | Interface and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
io.snappydata.thrift.ServerType |
getServerType()
Get the type of this server (DRDA or one of the Thrift server
configuration).
|
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 after which client
connections will yield.
|
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.
|
io.snappydata.thrift.ServerType getServerType()
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
GemFireXD 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()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.