com.jrockit.memleak.comm
Interface Controller

All Known Implementing Classes:
ControllerDummy, ControllerRJMX, ControllerRMP

public interface Controller

Interface for controlling the Memory Leak Server remotely.

Author:
mpersson

Field Summary
static java.lang.Class<?>[] CONSTRUCTOR_SIGNATURE
          All implementing classes should have a constructor with this signature.
 
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 port)
          Start the memory leak server.
 

Field Detail

CONSTRUCTOR_SIGNATURE

static final java.lang.Class<?>[] CONSTRUCTOR_SIGNATURE
All implementing classes should have a constructor with this signature.

MyController(String hostName, int port, String userName, String password)

Method Detail

startMLS

int startMLS()
             throws MemLeakControllerException
Start the memory leak server on the default port.

Returns:
the port that the server is listening to.
Throws:
MemLeakControllerException

startMLS

int startMLS(int port)
             throws MemLeakControllerException
Start the memory leak server.

Parameters:
port - - the port the server should listen to, or 0 to let the OS choose
Returns:
the port that we are actually listening to.
Throws:
MemLeakControllerException

shutDownMLS

void shutDownMLS()
                 throws MemLeakControllerException
Shutdown the memleak server.

Throws:
MemLeakControllerException

getMLSPort

int getMLSPort()
               throws MemLeakControllerException
Check if the server is started, will return 0 if not started, otherwise returns the port it is listening to

Returns:
the port it is listening to, or 0 if not started.
Throws:
MemLeakControllerException

printAvailableProtocolVersions

void printAvailableProtocolVersions()
                                    throws MemLeakControllerException
For debugging, print all available protocol versions to stdout.

Throws:
MemLeakControllerException


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.