Examples of deregister()


Examples of com.linkedin.databus.client.pub.DatabusRegistration.deregister()

        isException = true;
      }

      assertEquals("Exception expected", true, isException);

      reg2.deregister();
      reg.deregister();
     
    } finally {
      if ( null != client)
        client.shutdown();
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusRegistration.deregister()

        gotException = true;
      }
      assertEquals("gotException", true, gotException);
     
      if ( reg != null)
        reg.deregister();
     
    } finally {
      if ( null != client)
        client.shutdown();
    }
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusRegistration.deregister()

      reg.shutdown();
      assertEquals("Registered State", RegistrationState.SHUTDOWN, reg.getState());
      assertEquals("Component Status", Status.SHUTDOWN, reg.getStatus().getStatus());  
     
     
      reg.deregister();
    } finally {
      if ( null != client )
        client.shutdown();
    }
  }
View Full Code Here

Examples of com.linkedin.databus.client.pub.DatabusRegistration.deregister()

      }

      DatabusRegistration reg = regMap.get(partition);

      // Deregister the regMap which will shutdown the partition
      reg.deregister();

      regMap.remove(partition);
      _partitionSet.remove(partition);

      // remove dropped partition specific metrics
View Full Code Here

Examples of eu.admire.clienttoolkit.core.GatewayProcessManager.deregister()

       
        GatewayProcessManager gpm = GatewayProcessManager.getInstance();
        if (mProcesses != null) {
            for (int id : mProcesses.keySet()) {
                gpm.getGatewayProcess(id).deleteObserver(this);
                gpm.deregister(id);
            }
        }
        gpm.deleteObserver(this);
    }
   
View Full Code Here

Examples of io.netty.channel.Channel.deregister()

        final Channel sc = sb.bind(addr).syncUninterruptibly().channel();

        // Connect to the server
        final Channel cc = cb.connect(addr).syncUninterruptibly().channel();

        cc.deregister().syncUninterruptibly();
        // Change event loop group.
        group2.register(cc).syncUninterruptibly();
        cc.close().syncUninterruptibly();
        sc.close().syncUninterruptibly();
    }
View Full Code Here

Examples of io.netty.channel.local.LocalChannel.deregister()

        // Each task should be executed every 100ms.
        // Will give them additional 50ms to execute ten times.
        Thread.sleep(50 + 10 * 100);

        // Deregister must stop future execution of scheduled tasks.
        assertTrue(channel.deregister().sync().isSuccess());

        for (Queue<Long> timestamps : timestampsPerTask) {
            String message = String.format("size: %d, minSize: 10", timestamps.size());
            assertTrue(message, timestamps.size() >= 10);
            verifyTimestampDeltas(timestamps, TimeUnit.MICROSECONDS.toNanos(90));
View Full Code Here

Examples of io.netty.channel.local.LocalChannel.deregister()

                firstRun = false;
            }

            Thread.sleep(250);

            assertTrue(channel.deregister().sync().isSuccess());

            String message = String.format("size: %d, minSize: 2", timestamps.size());
            assertTrue(message, timestamps.size() >= 2);
            verifyTimestampDeltas(timestamps, TimeUnit.MILLISECONDS.toNanos(90));
            timestamps.clear();
View Full Code Here

Examples of io.netty.channel.local.LocalChannel.deregister()

                }
            }, 100, 200, TimeUnit.MILLISECONDS);
        }

        assertTrue(((PausableEventExecutor) channel.eventLoop()).isAcceptingNewTasks());
        ChannelFuture deregisterFuture = channel.deregister();
        assertFalse(((PausableEventExecutor) channel.eventLoop()).isAcceptingNewTasks());

        assertTrue(deregisterFuture.sync().isSuccess());

        timestamps.clear();
View Full Code Here

Examples of io.netty.channel.local.LocalChannel.deregister()

                assertTrue(loopB.inEventLoop());
            }
        }, 1, TimeUnit.SECONDS);

        assertTrue(((PausableEventExecutor) channel.eventLoop()).isAcceptingNewTasks());
        ChannelFuture deregisterFuture = channel.deregister();
        assertFalse(((PausableEventExecutor) channel.eventLoop()).isAcceptingNewTasks());

        assertTrue(deregisterFuture.sync().isSuccess());

        Thread.sleep(1000);
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.