|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.NetMonitor
public final class NetMonitor
Displays information about the commands that are being sent to the StarTeam Server. This may be useful in diagnosing performance problems.
| Method Summary | |
|---|---|
static void |
addCacheAgentListener(CacheAgentListener listener)
Registers a listener for CacheAgent events. |
static void |
addServerCommandListener(ServerCommandListener listener)
Registers a listener for ServerCommand events. |
long |
getBytesReceived()
|
long |
getBytesSent()
|
int |
getCommandID()
|
java.lang.String |
getCommandName()
|
int |
getCommandNumber()
|
long |
getCommandTime()
|
static int |
getRunningCommandCount()
Gets the total number of server commands currently being executed. |
int |
getServerThreadID()
|
int |
getSessionID()
|
static void |
kill()
Turns off the NetMonitor. |
static void |
onConsole()
Turns on the NetMonitor, sending output to the system console. |
static void |
onFile(java.io.File file)
Turns on the NetMonitor, sending output to the given file. |
static void |
println(java.lang.String info)
Writes a message to the NetMonitor output. |
static void |
removeCacheAgentListener(CacheAgentListener listener)
Removes a listener for CacheAgent events. |
static void |
removeServerCommandListener(ServerCommandListener listener)
Removes a listener for ServerCommand events. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void onConsole()
public static void onFile(java.io.File file)
file - The output file.Filepublic static void kill()
public static void println(java.lang.String info)
info - The message to be written.public static int getRunningCommandCount()
Only one server command can be executed per connection at any given time. However, if there are multiple connections used by different threads, the total number of executing commands may be greater than 1.
public static void addServerCommandListener(ServerCommandListener listener)
listener - The listener to be registered.ServerCommandListener,
ServerCommandEvent,
NetMonitor.removeServerCommandListener(com.starteam.events.ServerCommandListener)public static void removeServerCommandListener(ServerCommandListener listener)
listener - The listener to be removed. Should have been previously
registered via addServerCommandListener().NetMonitor.addServerCommandListener(com.starteam.events.ServerCommandListener)public static void addCacheAgentListener(CacheAgentListener listener)
listener - The listener to be registered.CacheAgentListener,
CacheAgentEvent,
NetMonitor.removeCacheAgentListener(com.starteam.events.CacheAgentListener)public static void removeCacheAgentListener(CacheAgentListener listener)
listener - The listener to be removed. Should have been previously
registered via addCacheAgentListener().NetMonitor.addCacheAgentListener(com.starteam.events.CacheAgentListener)public int getSessionID()
public int getServerThreadID()
public int getCommandNumber()
public int getCommandID()
public java.lang.String getCommandName()
public long getBytesSent()
public long getBytesReceived()
public long getCommandTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||