public class KarafContainerRegistration
extends java.lang.Object
implements org.linkedin.zookeeper.client.LifecycleListener, javax.management.NotificationListener, org.osgi.service.cm.ConfigurationListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HOST_REGEX |
static java.lang.String |
IP_OR_HOST_REGEX |
static java.lang.String |
IP_REGEX |
static java.lang.String |
RMI_HOST_REGEX |
| Constructor and Description |
|---|
KarafContainerRegistration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurationEvent(org.osgi.service.cm.ConfigurationEvent event)
Receives notification of a Configuration that has changed.
|
void |
destroy() |
IZKClient |
getZooKeeper() |
void |
handleNotification(javax.management.Notification notif,
java.lang.Object o) |
void |
onConnected() |
void |
onDisconnected() |
protected void |
registerDomains() |
void |
registerMBeanServer(org.osgi.framework.ServiceReference ref) |
static java.lang.String |
replaceJmxHost(java.lang.String jmxUrl,
java.lang.String hostName)
Replaces hostname/ip occurances inside the jmx url, with the specified hostname
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
void |
setZooKeeper(IZKClient zooKeeper) |
protected void |
unregisterDomains() |
void |
unregisterMBeanServer(org.osgi.framework.ServiceReference ref) |
public static final java.lang.String IP_REGEX
public static final java.lang.String HOST_REGEX
public static final java.lang.String IP_OR_HOST_REGEX
public static final java.lang.String RMI_HOST_REGEX
public IZKClient getZooKeeper()
public void setZooKeeper(IZKClient zooKeeper)
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void onConnected()
onConnected in interface org.linkedin.zookeeper.client.LifecycleListenerpublic void destroy()
public void onDisconnected()
onDisconnected in interface org.linkedin.zookeeper.client.LifecycleListenerpublic void registerMBeanServer(org.osgi.framework.ServiceReference ref)
public void unregisterMBeanServer(org.osgi.framework.ServiceReference ref)
protected void registerDomains()
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionprotected void unregisterDomains()
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic void handleNotification(javax.management.Notification notif,
java.lang.Object o)
handleNotification in interface javax.management.NotificationListenerpublic static java.lang.String replaceJmxHost(java.lang.String jmxUrl,
java.lang.String hostName)
jmxUrl - hostName - public void configurationEvent(org.osgi.service.cm.ConfigurationEvent event)
configurationEvent in interface org.osgi.service.cm.ConfigurationListenerevent - The ConfigurationEvent.Copyright © 2014 Red Hat. All Rights Reserved.