public class JMXConnection extends Object implements Connection
Constructor and Description |
---|
JMXConnection(JMXUrl serviceUrl) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(String credentials) |
void |
execute(Context context,
CommandBuffer commandBuffer) |
String |
getActiveCache() |
String |
getActiveContainer() |
Collection<String> |
getAvailableCaches() |
Collection<String> |
getAvailableContainers() |
boolean |
isConnected() |
boolean |
needsCredentials() |
void |
setActiveContainer(String name) |
String |
toString() |
static String |
unquote(String s) |
public JMXConnection(JMXUrl serviceUrl)
public boolean needsCredentials()
needsCredentials
in interface Connection
public void connect(String credentials) throws Exception
connect
in interface Connection
Exception
public boolean isConnected()
isConnected
in interface Connection
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String getActiveCache()
getActiveCache
in interface Connection
public Collection<String> getAvailableContainers()
getAvailableContainers
in interface Connection
public String getActiveContainer()
getActiveContainer
in interface Connection
public void setActiveContainer(String name)
setActiveContainer
in interface Connection
public Collection<String> getAvailableCaches()
getAvailableCaches
in interface Connection
public void execute(Context context, CommandBuffer commandBuffer)
execute
in interface Connection
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.