Package org.apache.hadoop.service

Examples of org.apache.hadoop.service.LoggingStateChangeListener


   */
  @Test
  public void testListenerChain() {

    //create and register the listeners
    LoggingStateChangeListener logListener = new LoggingStateChangeListener();
    register(logListener);
    BreakableStateChangeListener l0 = new BreakableStateChangeListener("l0");
    register(l0);
    listener.setFailingState(Service.STATE.STARTED);
    register();
View Full Code Here


   */

  @Test
  public void testStopFailingInitAndStop() throws Throwable {
    BreakableService svc = new BreakableService(true, false, true);
    svc.registerServiceListener(new LoggingStateChangeListener());
    try {
      svc.init(new Configuration());
      fail("Expected a failure, got " + svc);
    } catch (BreakableService.BrokenLifecycleEvent e) {
      assertEquals(Service.STATE.INITED, e.state);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.service.LoggingStateChangeListener

Copyright © 2018 www.massapicom. 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.