@SuppressWarnings({"unchecked", "rawtypes"})
 @BeforeClass
 public static void loginPado() throws PadoLoginException {
   System.setProperty("gemfirePropertyFile", "etc/client/client.properties");
   Pado.connect("localhost:20000", true);
   pado = Pado.login("sys", "netcrest", "dpark", "dpark".toCharArray());
   ICatalog catalog = pado.getCatalog();
   portfolioBiz = catalog.newInstance(ITemporalBiz.class, "portfolio");
 }
Пример #2
0
  @BeforeClass
  public static void loginPado() throws PadoLoginException {
    // Security
    //		System.setProperty("gemfireSecurityPropertyFile", "etc/client/gfsecurity.properties");
    //		System.setProperty("pado.security.aes.user.certificate", "etc/user.cer");
    //		System.setProperty("pado.security.enabled", "true");

    System.setProperty("gemfirePropertyFile", "etc/client/client.properties");

    Pado.connect("localhost:20000", true);
    pado = Pado.login("sys", "netcrest", "test1", "test123".toCharArray());
    ICatalog catalog = pado.getCatalog();
    for (String className : catalog.getAllBizClassNames()) {
      System.out.println(className);
    }
    imbiz = catalog.newInstance(IIndexMatrixBiz.class, true /* initialize */);
  }
Пример #3
0
  @SuppressWarnings("unchecked")
  @BeforeClass
  public static void loginPado() throws PadoLoginException, ParseException {
    // Security -- Comment out the following to disable security
    // System.setProperty("gemfireSecurityPropertyFile",
    // "etc/client/gfsecurity.properties");
    // System.setProperty("pado.security.aes.user.certificate",
    // "etc/user.cer");
    // System.setProperty("pado.security.enabled", "true");

    System.setProperty("gemfirePropertyFile", "etc/client/client.properties");
    Pado.connect("localhost:20000", true);
    pado = Pado.login("sys", "netcrest", "test1", "test123".toCharArray());
    ICatalog catalog = pado.getCatalog();
    temporalBiz = catalog.newInstance(ITemporalBiz.class);
    temporalBiz.setGridPath("temporal");
    temporalBiz.getBizContext().getGridContextClient().setGridIds("mygrid");
  }
 @AfterClass
 public static void closePado() {
   Pado.close();
 }