Examples of ManagedSerializable


Examples of com.sun.sgs.app.util.ManagedSerializable

        }
        assertEquals(controlKeys, keys);
        assertIteratorContains(controlKeys, keys.iterator());
        assertEquals(controlKeys.hashCode(), keys.hashCode());
        dataService.setBinding("keys",
             new ManagedSerializable(keys));
    }
      }, taskOwner);
  txnScheduler.runTask(
      new TestAbstractKernelRunnable() {
    public void run() throws Exception {
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

        }
        assertEquals(controlEntries, entries);
        assertIteratorContains(controlEntries, entries.iterator());
        assertEquals(controlEntries.hashCode(), entries.hashCode());
        dataService.setBinding("entries",
             new ManagedSerializable(entries));
    }
      }, taskOwner);
  txnScheduler.runTask(
      new TestAbstractKernelRunnable() {
    public void run() throws Exception {
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

          new TestAbstractKernelRunnable() {
        public void run() throws Exception {
      ScalableHashMap test =
          (ScalableHashMap) dataService.getBinding("test");
      dataService.setBinding("valuesIter",
          new ManagedSerializable(test.values().iterator()));
        }
    }, taskOwner);
      txnScheduler.runTask(
          new TestAbstractKernelRunnable() {
        public void run() throws Exception {
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

          Proxy.newProxyInstance(
        ClientSessionServer.class.getClassLoader(),
        new Class[] { ClientSessionServer.class },
        handler);
      dataService.setServiceBinding(
          key, new ManagedSerializable(delayingServer));
        }
    }}, taskOwner);

      for (int i = 0; i < iterations; i++) {
    for (SgsTestNode node : nodes) {
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

  if (nodeId == localNodeId) {
      return serverImpl;
  } else {
      String sessionServerKey = getClientSessionServerKey(nodeId);
      try {
    ManagedSerializable wrappedProxy = (ManagedSerializable)
        dataService.getServiceBinding(sessionServerKey);
    return (ClientSessionServer) wrappedProxy.get();
      } catch (NameNotBoundException e) {
    return null;
      catch (ObjectNotFoundException e) {
    logger.logThrow(
        Level.SEVERE, e,
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

  if (nodeId == localNodeId) {
      return serverImpl;
  } else {
      String sessionServerKey = getClientSessionServerKey(nodeId);
      try {
    ManagedSerializable wrappedProxy = (ManagedSerializable)
        dataService.getServiceBinding(sessionServerKey);
    return (ClientSessionServer) wrappedProxy.get();
      } catch (NameNotBoundException e) {
    return null;
      catch (ObjectNotFoundException e) {
    logger.logThrow(
        Level.SEVERE, e,
View Full Code Here

Examples of com.sun.sgs.app.util.ManagedSerializable

          Proxy.newProxyInstance(
        ClientSessionServer.class.getClassLoader(),
        new Class[] { ClientSessionServer.class },
        handler);
      dataService.setServiceBinding(
          key, new ManagedSerializable(delayingServer));
        }
    }}, taskOwner);

      for (int i = 0; i < iterations; i++) {
    for (SgsTestNode node : nodes) {
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.