|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.comm.RemoteMLSController
public class RemoteMLSController
Helper class for obtaining a controller that can start and stop the MemLeakServer remotely.
| Nested Class Summary | |
|---|---|
static class |
RemoteMLSController.ProtocolDescriptor
Description of a protocol that can be used to control the Memory Leak Server. |
| Constructor Summary | |
|---|---|
RemoteMLSController()
|
|
| Method Summary | |
|---|---|
static IMemLeak |
connectTo(java.lang.String serverName,
int port,
java.lang.String username,
java.lang.String password,
int preferredMLSPort)
Attempt to connect to a JRockit using the first available protocol. |
static java.util.Iterator<RemoteMLSController.ProtocolDescriptor> |
getAllDescriptors()
|
static RemoteMLSController.ProtocolDescriptor |
getAvailableDescriptor(java.lang.String preferredProtocol)
Returns the descriptor for the given descriptor, or if it is unavailable, for the default protocol. |
static Controller |
getController(java.lang.String protocol,
java.lang.String serverName,
int port,
java.lang.String username,
java.lang.String password)
If port is 0, each protocol tried will use its own default port. |
static java.lang.String |
getDefaultProtocol()
Returns the default protocol. |
static RemoteMLSController.ProtocolDescriptor |
getDescriptor(java.lang.String protocol)
Returns the descriptor for the given descriptor, without checking if it is available. |
static void |
main(java.lang.String[] args)
Main method for controlling MLS remotely from commandline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteMLSController()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - public static RemoteMLSController.ProtocolDescriptor getDescriptor(java.lang.String protocol)
protocol - the protocol identifier
public static java.lang.String getDefaultProtocol()
public static RemoteMLSController.ProtocolDescriptor getAvailableDescriptor(java.lang.String preferredProtocol)
preferredProtocol - the protocol identifier of the preferred protocol
public static java.util.Iterator<RemoteMLSController.ProtocolDescriptor> getAllDescriptors()
public static Controller getController(java.lang.String protocol,
java.lang.String serverName,
int port,
java.lang.String username,
java.lang.String password)
throws MemLeakControllerException
protocol - the protocol identifier of the preferred protocolserverName - port - username - password -
MemLeakControllerException - if no protocol at all was available
public static IMemLeak connectTo(java.lang.String serverName,
int port,
java.lang.String username,
java.lang.String password,
int preferredMLSPort)
throws java.io.IOException
serverName - port - username - password - preferredMLSPort -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||