Examples of LifecycleEvent


Examples of com.hazelcast.core.LifecycleEvent

    public boolean removeLifecycleListener(String registrationId) {
        return lifecycleListeners.remove(registrationId) != null;
    }

    public void fireLifecycleEvent(LifecycleState lifecycleState) {
        fireLifecycleEvent(new LifecycleEvent(lifecycleState));
    }
View Full Code Here

Examples of com.hazelcast.core.LifecycleEvent

    public boolean removeLifecycleListener(String registrationId) {
        return lifecycleListeners.remove(registrationId) != null;
    }

    public void fireLifecycleEvent(LifecycleEvent.LifecycleState lifecycleState) {
        final LifecycleEvent lifecycleEvent = new LifecycleEvent(lifecycleState);
        getLogger().info("HazelcastClient[" + client.getName() + "]" + "[" + buildInfo.getVersion() + "] is " + lifecycleEvent.getState());
        for (LifecycleListener lifecycleListener : lifecycleListeners.values()) {
            lifecycleListener.stateChanged(lifecycleEvent);
        }
    }
View Full Code Here

Examples of com.hazelcast.core.LifecycleEvent

    public boolean removeLifecycleListener(String registrationId) {
        return lifecycleListeners.remove(registrationId) != null;
    }

    public void fireLifecycleEvent(LifecycleState lifecycleState) {
        fireLifecycleEvent(new LifecycleEvent(lifecycleState));
    }
View Full Code Here

Examples of com.hazelcast.core.LifecycleEvent

    public boolean removeLifecycleListener(String registrationId) {
        return lifecycleListeners.remove(registrationId) != null;
    }

    public void fireLifecycleEvent(LifecycleEvent.LifecycleState lifecycleState) {
        final LifecycleEvent lifecycleEvent = new LifecycleEvent(lifecycleState);
        getLogger().info("HazelcastClient[" + client.getName() + "]" + "["
                + buildInfo.getVersion() + "] is " + lifecycleEvent.getState());
        for (LifecycleListener lifecycleListener : lifecycleListeners.values()) {
            lifecycleListener.stateChanged(lifecycleEvent);
        }
    }
View Full Code Here

Examples of com.sun.appserv.server.LifecycleEvent

        }

        if (urlClassLoader != null)
            setClassLoader();

        LifecycleEvent slcEvent= new LifecycleEvent(this, eventType, data, this.leContext);
        try {
            slcl.handleEvent(slcEvent);
        } catch (ServerLifecycleException sle) {
            _logger.log(Level.WARNING, KernelLoggerInfo.serverLifecycleException,
                    new Object[] {this.name, sle});
View Full Code Here

Examples of net.sourceforge.javautil.lifecycle.LifecycleEvent

    }
    this.fireAfter(phase.getType());
  }
 
  protected void fireBefore (PhaseType type) {
    ((ILifecycleListener)this.propagator).before(new LifecycleEvent("before", this, type, TransitionType.Before));
  }
View Full Code Here

Examples of net.sourceforge.javautil.lifecycle.LifecycleEvent

  protected void fireBefore (PhaseType type) {
    ((ILifecycleListener)this.propagator).before(new LifecycleEvent("before", this, type, TransitionType.Before));
  }
 
  protected void fireAfter (PhaseType type) {
    ((ILifecycleListener)this.propagator).after(new LifecycleEvent("after", this, type, TransitionType.After));
  }
View Full Code Here

Examples of net.sourceforge.javautil.lifecycle.LifecycleEvent

  protected void fireAfter (PhaseType type) {
    ((ILifecycleListener)this.propagator).after(new LifecycleEvent("after", this, type, TransitionType.After));
  }
 
  protected void fireFailure (PhaseType type) {
    ((ILifecycleListener)this.propagator).failure(new LifecycleEvent("exception", this, type, TransitionType.Failure));
  }
View Full Code Here

Examples of org.apache.catalina.LifecycleEvent

        } else if (Lifecycle.AFTER_STOP_EVENT.equals(type)) {
            state = "STOPPED";
        } else if (Lifecycle.DESTROY_EVENT.equals(type)) {
            state = "DESTROYED";
        }
        LifecycleEvent event = new LifecycleEvent(lifecycle, type, data);
        LifecycleListener interested[] = listeners;
        for (int i = 0; i < interested.length; i++)
            interested[i].lifecycleEvent(event);

    }
View Full Code Here

Examples of org.apache.catalina.LifecycleEvent

                context.clearAttributes();
   
            if (isUseNaming()) {
                // Stop
                namingContextListener.lifecycleEvent
                    (new LifecycleEvent(this, Lifecycle.STOP_EVENT));
            }
        } finally {
            // Binding thread
            unbindThread(oldCCL);
        }
       
        // Shut down our application class loader
        if ((loader != null) && (loader instanceof Lifecycle)) {
            try {
                ((Lifecycle) loader).stop();
            } catch (LifecycleException e) {
                log(sm.getString("standardContext.stoppingLoader"), e);
            }
        }

        // Binding thread
        oldCCL = bindThread();

        try {
            // Restart our application class loader
            if ((loader != null) && (loader instanceof Lifecycle)) {
                try {
                    ((Lifecycle) loader).start();
                } catch (LifecycleException e) {
                    log(sm.getString("standardContext.startingLoader"), e);
                }
            }
        } finally {
            // Binding thread
            unbindThread(oldCCL);
        }
       
        // Create and register the associated naming context, if internal
        // naming is used
        boolean ok = true;
        if (isUseNaming()) {
            // Start
            namingContextListener.lifecycleEvent
                (new LifecycleEvent(this, Lifecycle.START_EVENT));
        }

        // Binding thread
        oldCCL = bindThread();
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.