public class FabricWebRegistrationHandler extends Object implements org.apache.curator.framework.state.ConnectionStateListener
| Constructor and Description |
|---|
FabricWebRegistrationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected Set<ObjectName> |
findObjectNames(QueryExp queryExp,
String... objectNames) |
protected void |
findWebAppMBeans()
Lets query JMX for any MBeans to define web apps in containers like Tomcat, Jetty, JBoss
|
org.apache.curator.framework.CuratorFramework |
getCurator() |
io.fabric8.api.FabricService |
getFabricService() |
protected NotificationFilter |
getNotificationFilter() |
protected NotificationListener |
getNotificationListener() |
void |
init() |
void |
onConnected() |
void |
onDisconnected() |
protected void |
registerWebapp(String name,
String version,
String url)
Registers a webapp to the registry.
|
void |
setCurator(org.apache.curator.framework.CuratorFramework curator) |
void |
setFabricService(io.fabric8.api.FabricService fabricService) |
void |
stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState) |
protected void findWebAppMBeans()
protected Set<ObjectName> findObjectNames(QueryExp queryExp, String... objectNames) throws MalformedObjectNameException
MalformedObjectNameExceptionprotected NotificationListener getNotificationListener()
protected NotificationFilter getNotificationFilter()
protected void registerWebapp(String name, String version, String url)
public void stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState)
stateChanged in interface org.apache.curator.framework.state.ConnectionStateListenerpublic void onConnected()
public void onDisconnected()
public io.fabric8.api.FabricService getFabricService()
public void setFabricService(io.fabric8.api.FabricService fabricService)
public org.apache.curator.framework.CuratorFramework getCurator()
public void setCurator(org.apache.curator.framework.CuratorFramework curator)
Copyright © 2011–2014 Red Hat. All rights reserved.