Examples of untrackConfiguration()


Examples of io.fabric8.api.DataStore.untrackConfiguration()

                if (dataStore != null) {
                    if (group.isMaster()) {
                        dataStore.trackConfiguration(runnable);
                        onConfigurationChanged();
                    } else {
                        dataStore.untrackConfiguration(runnable);
                    }
                }
            } catch (IllegalStateException e) {
                // Ignore
            }
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

    void deactivate() {
        if (zkMasterCache != null) {
            zkMasterCache = null;
        }
        DataStore dataStore = fabricService.get().adapt(DataStore.class);
        dataStore.untrackConfiguration(configurationChangeHandler);
        if (keepAliveTimer != null) {
            keepAliveTimer.cancel();
            keepAliveTimer = null;
        }
        deactivateComponent();
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            onConfigurationChanged();
                        } else {
                            LOGGER.info("AutoScaleController is not the master");
                            group.update(state);
                            disableTimer();
                            dataStore.untrackConfiguration(runnable);
                            disableMasterZkCache();
                        }
                    } catch (IllegalStateException e) {
                        // Ignore
                    }
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            + " fabric: " + fabricService.get()
                            + " curator: " + curator.get());
                }
                break;
            case DISCONNECTED:
                dataStore.untrackConfiguration(runnable);
        }
    }


    protected void enableMasterZkCache(CuratorFramework curator) {
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            onConfigurationChanged();
                        } else {
                            LOGGER.info("KubernetesHeathChecker is not the master");
                            group.update(state);
                            disableTimer();
                            dataStore.untrackConfiguration(runnable);
                            disableMasterZkCache();
                        }
                    } catch (IllegalStateException e) {
                        // Ignore
                    }
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            + " fabric: " + fabricService.get()
                            + " curator: " + getCuratorFramework());
                }
                break;
            case DISCONNECTED:
                dataStore.untrackConfiguration(runnable);
        }
    }


    protected void enableMasterZkCache(CuratorFramework curator) {
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            onConfigurationChanged();
                        } else {
                            LOGGER.info("ProfileReplicationController is not the master");
                            group.update(state);
                            disableTimer();
                            dataStore.untrackConfiguration(runnable);
                            disableMasterZkCache();
                        }
                    } catch (IllegalStateException e) {
                        // Ignore
                    }
View Full Code Here

Examples of io.fabric8.api.DataStore.untrackConfiguration()

                            + " fabric: " + fabricService.get()
                            + " curator: " + curator.get());
                }
                break;
            case DISCONNECTED:
                dataStore.untrackConfiguration(runnable);
        }
    }


    protected void enableMasterZkCache(CuratorFramework curator) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.