org.infinispan.cli.connection.jmx
Class JMXConnection
java.lang.Object
org.infinispan.cli.connection.jmx.JMXConnection
- All Implemented Interfaces:
- Closeable, Connection
public class JMXConnection
- extends Object
- implements Connection
JMXConnection
public JMXConnection(JMXUrl serviceUrl)
needsCredentials
public boolean needsCredentials()
- Specified by:
needsCredentials
in interface Connection
connect
public void connect(Context context,
String credentials)
throws Exception
- Specified by:
connect
in interface Connection
- Throws:
Exception
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interface Connection
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
getActiveCache
public String getActiveCache()
- Specified by:
getActiveCache
in interface Connection
getAvailableContainers
public Collection<String> getAvailableContainers()
- Specified by:
getAvailableContainers
in interface Connection
getActiveContainer
public String getActiveContainer()
- Specified by:
getActiveContainer
in interface Connection
setActiveContainer
public void setActiveContainer(String name)
- Specified by:
setActiveContainer
in interface Connection
getAvailableCaches
public Collection<String> getAvailableCaches()
- Specified by:
getAvailableCaches
in interface Connection
execute
public void execute(Context context,
CommandBuffer commandBuffer)
- Specified by:
execute
in interface Connection
unquote
public static String unquote(String s)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.