|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.comm.ControllerDummy
public class ControllerDummy
Class that pretends to controlling the Memory Leak Server remotely, assuming that it is already running.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
The default port for this protocol (is this case, actually for the MLS protocol, since we have no controlling protocol). |
static java.lang.String |
PROTOCOL
The protocol identifier for this protocol (is this case, actually for the MLS protocol, since we have no controlling protocol). |
| Fields inherited from interface com.jrockit.memleak.comm.Controller |
|---|
CONSTRUCTOR_SIGNATURE |
| Constructor Summary | |
|---|---|
ControllerDummy(java.lang.String hostName,
int port,
java.lang.String userName,
java.lang.String password)
Create a new dummy controller. |
|
| Method Summary | |
|---|---|
int |
getMLSPort()
Check if the server is started, will return 0 if not started, otherwise returns the port it is listening to |
void |
printAvailableProtocolVersions()
For debugging, print all available protocol versions to stdout. |
void |
shutDownMLS()
Shutdown the memleak server. |
int |
startMLS()
Start the memory leak server on the default port. |
int |
startMLS(int desiredPort)
Start the memory leak server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROTOCOL
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public ControllerDummy(java.lang.String hostName,
int port,
java.lang.String userName,
java.lang.String password)
hostName - the host nameport - the MLS portuserName - ignoredpassword - ignored| Method Detail |
|---|
public int startMLS()
throws MemLeakControllerException
Controller
startMLS in interface ControllerMemLeakControllerException
public int startMLS(int desiredPort)
throws MemLeakControllerException
Controller
startMLS in interface ControllerdesiredPort - - the port the server should listen to, or 0 to let the OS
choose
MemLeakControllerException
public void shutDownMLS()
throws MemLeakControllerException
Controller
shutDownMLS in interface ControllerMemLeakControllerException
public int getMLSPort()
throws MemLeakControllerException
Controller
getMLSPort in interface ControllerMemLeakControllerException
public void printAvailableProtocolVersions()
throws MemLeakControllerException
Controller
printAvailableProtocolVersions in interface ControllerMemLeakControllerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||