Examples of RequestQueueListener


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

    new MultiLockManager<Object>(lockTimeout, numKeyMaps);
      ServerSocket serverSocket =
    new ServerSocket(requestedUpdateQueuePort);
      updateQueuePort = serverSocket.getLocalPort();
      updateQueueServer = new LoggingUpdateQueueServer(this, logger);
      requestQueueListener = new RequestQueueListener(
    serverSocket,
    new RequestQueueListener.ServerDispatcher() {
        public RequestQueueServer<UpdateQueueRequest> getServer(
      long nodeId)
        {
View Full Code Here

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

    @Before
    public void beforeTest() throws IOException {
  serverDispatcher = new SimpleServerDispatcher();
  failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      new ServerSocket(PORT), serverDispatcher, failureReporter,
      MAX_RETRY, RETRY_WAIT);
    }
View Full Code Here

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

    /* Test constructor */

    @Test(expected=NullPointerException.class)
    public void testConstructorNullSocket() {
  new RequestQueueListener(
      null, serverDispatcher, failureReporter, MAX_RETRY, RETRY_WAIT);
    }
View Full Code Here

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

      null, serverDispatcher, failureReporter, MAX_RETRY, RETRY_WAIT);
    }

    @Test(expected=NullPointerException.class)
    public void testConstructorNullServerDispatcher() {
  new RequestQueueListener(
      unboundServerSocket, null, failureReporter, MAX_RETRY, RETRY_WAIT);
    }
View Full Code Here

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

      unboundServerSocket, null, failureReporter, MAX_RETRY, RETRY_WAIT);
    }

    @Test(expected=NullPointerException.class)
    public void testConstructorNullFailureReporter() {
  new RequestQueueListener(
      unboundServerSocket, serverDispatcher, null, MAX_RETRY,
      RETRY_WAIT);
    }
View Full Code Here

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

      RETRY_WAIT);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructorIllegalMaxRetry() {
  new RequestQueueListener(
      unboundServerSocket, serverDispatcher, failureReporter, -1,
      RETRY_WAIT);
    }
View Full Code Here

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

      RETRY_WAIT);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructorIllegalRetryWait() {
  new RequestQueueListener(
      unboundServerSocket, serverDispatcher, failureReporter, MAX_RETRY,
      -33);
    }
View Full Code Here

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

     * accepts fail because the socket isn't bound.
     */
    @Test
    public void testAcceptFails() throws Exception {
  NoteFailure failureReporter = new NoteFailure();
  listener = new RequestQueueListener(
      unboundServerSocket, serverDispatcher, failureReporter, MAX_RETRY,
      RETRY_WAIT);
  failureReporter.checkCalled(MAX_RETRY);
    }
View Full Code Here

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

     */
    @Test
    public void testAcceptInputDisconnected() 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() {
    try {
View Full Code Here

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

    @Test
    public void testAcceptNoInput() 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
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.