public class JMXDetector extends SyncAbstractDetector
Modifier | Constructor and Description |
---|---|
protected |
JMXDetector(String serviceName,
int port)
Constructor for JMXDetector.
|
protected |
JMXDetector(String serviceName,
int port,
int timeout,
int retries)
Constructor for JMXDetector.
|
Modifier and Type | Method and Description |
---|---|
protected JmxServerConnectionWrapper |
connect(InetAddress address,
int port,
int timeout,
Map<String,String> runtimeAttributes) |
DetectResults |
detect(DetectRequest request)
detect
|
void |
dispose()
dispose
|
String |
getFactory()
getFactory
|
String |
getFriendlyName()
getFriendlyName
|
String |
getObject() |
String |
getPassword()
getPassword
|
String |
getProtocol()
getProtocol
|
String |
getType()
getType
|
String |
getUrl() |
String |
getUrlPath()
getUrlPath
|
String |
getUsername()
getUsername
|
boolean |
isServiceDetected(InetAddress address)
isServiceDetected
|
boolean |
isServiceDetected(InetAddress address,
Map<String,String> runtimeAttributes) |
protected void |
onInit()
onInit
|
void |
setFactory(String factory)
setFactory
|
void |
setFriendlyName(String friendlyName)
setFriendlyName
|
void |
setObject(String object) |
void |
setPassword(String password)
setPassword
|
void |
setProtocol(String protocol)
setProtocol
|
void |
setType(String type)
setType
|
void |
setUrl(String url) |
void |
setUrlPath(String urlPath)
setUrlPath
|
void |
setUsername(String username)
setUsername
|
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
protected JMXDetector(String serviceName, int port)
Constructor for JMXDetector.
serviceName
- a String
object.port
- a int.public DetectResults detect(DetectRequest request)
SyncServiceDetector
detect
detect
in interface SyncServiceDetector
detect
in class SyncAbstractDetector
request
- a DetectRequest
object.public final boolean isServiceDetected(InetAddress address)
SyncAbstractDetector
isServiceDetected
isServiceDetected
in class SyncAbstractDetector
address
- a InetAddress
object.public final boolean isServiceDetected(InetAddress address, Map<String,String> runtimeAttributes)
public void dispose()
AbstractDetector
dispose
dispose
in interface ServiceDetector
dispose
in class AbstractDetector
public String getObject()
public void setObject(String object)
public void setFriendlyName(String friendlyName)
setFriendlyName
friendlyName
- a String
object.public void setProtocol(String protocol)
setProtocol
protocol
- a String
object.public void setUsername(String username)
setUsername
username
- a String
object.public void setPassword(String password)
setPassword
password
- a String
object.public String getUrl()
public void setUrl(String url)
protected void onInit()
AbstractDetector
onInit
onInit
in class AbstractDetector
protected JmxServerConnectionWrapper connect(InetAddress address, int port, int timeout, Map<String,String> runtimeAttributes) throws IOException
IOException
Copyright © 2020. All rights reserved.