Created On: 28 October 2011
Problem:
How do you enable NetMon logging via the StarTeam SDK?
Resolution:
To enable Netmon logging for debug purposes the code below can be used:
This will write all the underlying SDK calls to the netmon.txt file.
The java classes NetMonitor, ServerCommandListener & ServerCommandEvent can be used to analyze specific areas of code and examine StarTeam application performance bottlenecks. These classes should be included in a DEBUG directive so they are turned off in production.
For more details on the StarTeam SDK visit the SDK guide.
com.starbase.starteam.vts.comm.NetMonitor.onFile(new java.io.File(“c:\\temp\\”,“netmon.txt"));
This will write all the underlying SDK calls to the netmon.txt file.
The java classes NetMonitor, ServerCommandListener & ServerCommandEvent can be used to analyze specific areas of code and examine StarTeam application performance bottlenecks. These classes should be included in a DEBUG directive so they are turned off in production.
For more details on the StarTeam SDK visit the SDK guide.
Incident #2499419