Package com.santaba.agent.groovyapi.jmx
Class JMX
- java.lang.Object
-
- com.santaba.agent.groovyapi.jmx.JMX
-
public class JMX extends java.lang.Object
A helper class to open jmx connections.- See Also:
Client
-
-
Constructor Summary
Constructors Constructor Description JMX()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Client
open(java.lang.String url)
Deprecated.static Client
open(java.lang.String url, long timeout)
connect to a remote host by fully provided url with timeout paramstatic Client
open(java.lang.String protocol, java.lang.String hostname, int port, java.util.Map env, long timeout)
connect to a remote hoststatic Client
open(java.lang.String url, java.lang.String username, java.lang.String password)
Deprecated.static Client
open(java.lang.String url, java.lang.String username, java.lang.String password, long timeoutInMs)
connect to a remote host with timeout
-
-
-
Method Detail
-
open
@Deprecated public static Client open(java.lang.String url) throws java.io.IOException
Deprecated.connect to a remote host by fully provided url. and won't timeout.- Parameters:
url
- the url- Returns:
- JMX client
- Throws:
java.io.IOException
- If some other I/O error occurs- See Also:
use this version with timeout param
-
open
public static Client open(java.lang.String url, long timeout) throws java.io.IOException
connect to a remote host by fully provided url with timeout param- Parameters:
url
- the urltimeout
- the time out value in mill seconds- Returns:
- JMX client
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
@Deprecated public static Client open(java.lang.String url, java.lang.String username, java.lang.String password) throws java.io.IOException
Deprecated.connect to a remote host. and won't timeout.- Parameters:
url
- urlusername
- usernamepassword
- password- Returns:
- JMX client
- Throws:
java.io.IOException
- If some other I/O error occurs- See Also:
use this version with timeout param
-
open
public static Client open(java.lang.String url, java.lang.String username, java.lang.String password, long timeoutInMs) throws java.io.IOException
connect to a remote host with timeout- Parameters:
url
- urlusername
- usernamepassword
- passwordtimeoutInMs
- the timeout in mill seconds- Returns:
- JMX Client
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static Client open(java.lang.String protocol, java.lang.String hostname, int port, java.util.Map env, long timeout) throws java.io.IOException
connect to a remote host- Parameters:
protocol
- the protocol of the jmx, eg, rmi, jmxmphostname
- the host ipport
- the jmx portenv
- the env of the jmx, eg, credential, SSLSocketstimeout
- the timeout in mill seconds- Returns:
- JMX Client
- Throws:
java.io.IOException
- If some other I/O error occurs
-
-