Package com.sun.sgs.impl.service.data.store.net

Examples of com.sun.sgs.impl.service.data.store.net.DataStoreServerImpl


    @Test
    public void testJoinTxnServerFailed() throws Exception {
  txn.abort(new RuntimeException("abort"));
  store.shutdown();
  store = null;
  DataStoreServerImpl server = new DataStoreServerImpl(
      props, systemRegistry, txnProxy);
  props.setProperty(DataStoreNetPackage + ".server.host", "localhost");
  props.setProperty(DataStoreNetPackage + ".server.port",
        String.valueOf(server.getPort()));
                props.setProperty(StandardProperties.NODE_TYPE,
                          NodeType.appNode.toString());
  txn = createTransaction()
  store = createDataStore(props);
  server.shutdown();
  try {
      store.createObject(txn);
      fail("Expected NetworkException");
  } catch (NetworkException e) {
      System.err.println(e);
View Full Code Here


    /**
     * Create a DataStoreClient, set any default properties, and start the
     * server, if needed.
     */
    DataStoreServerImpl getDataStoreServer() throws Exception {
  return new DataStoreServerImpl(
      props, env.systemRegistry, env.txnProxy);
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.data.store.net.DataStoreServerImpl

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.