Examples of RequestQueueListener


Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testAcceptUnknownNodeId() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  connect = new InterruptableThread() {
      boolean runOnce() {
    Socket socket = null;
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testAcceptIncompleteNodeId() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  connect = new InterruptableThread() {
      boolean runOnce() {
    Socket socket = null;
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testAcceptUnexpectedException() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket,
      new ServerDispatcher() {
    public RequestQueueServer<? extends Request> getServer(
        long nodeId)
    {
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testAcceptAlternatingFailures() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  DummyRequestQueueServer server = new DummyRequestQueueServer(1);
  serverDispatcher.setServer(1, server);
  connect = new InterruptableThread() {
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

    /** Test the listener accepting connections successfully. */
    @Test
    public void testAcceptSuccess() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  DummyRequestQueueServer server33 = new DummyRequestQueueServer(33);
  serverDispatcher.setServer(33, server33);
  DummyRequestQueueServer server999 = new DummyRequestQueueServer(999);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testShutdownNoConnections() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  Thread.sleep(extraWait);
  listener.shutdown();
  /* Make sure the server socket has been shutdown */
 
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.queue.RequestQueueListener

     */
    @Test
    public void testShutdownWithConnections() throws Exception {
  serverSocket = new ServerSocket(PORT);
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      serverSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  serverDispatcher.setServer(33, new DummyRequestQueueServer(33));
  connect = new InterruptableThread() {
      boolean runOnce() {
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.