Examples of Admin


Examples of org.logicalcobwebs.proxool.admin.Admin

        connectionValidator = new DefaultConnectionValidator();
       
        if (definition.getStatistics() != null) {
            try {
                admin = new Admin(definition);
            } catch (ProxoolException e) {
                log.error("Failed to initialise statistics", e);
            }
        }
View Full Code Here

Examples of org.objectweb.jtests.jms.admin.Admin

   public void setUp() throws Exception
   {
      super.setUp();
      Class adminClass = Thread.currentThread().getContextClassLoader().loadClass(adminName);
      Constructor constructor = adminClass.getConstructor(new Class[] { Class.class });
      Admin admin = (Admin) constructor.newInstance(new Object[] { clazz } );
      GenericAdmin.delegate = admin;
   }
View Full Code Here

Examples of org.openspaces.admin.Admin

        }
        return instances;
    }

    private static ProcessingUnit waitForProcessingUnit(final String applicationName, final String serviceName,  final long timeout, final TimeUnit timeunit) {
        final Admin admin = new AdminFactory().createAdmin();
        final String puName = applicationName + "." + serviceName;
        final ProcessingUnit pu = admin.getProcessingUnits().waitFor(puName, timeout, timeunit);
        if (pu == null) {
            throw new IllegalStateException("Could not discover service " + serviceName + " in application " + applicationName);
        }
        return pu;
    }
View Full Code Here

Examples of org.ozoneDB.core.admin.Admin

     * Return the administration object for this database.
     *
     * @return The admin object for this database;
     */
    public Admin admin() throws Exception {
        Admin admin = (Admin) objectForName(AdminImpl.OBJECT_NAME);
        return admin;
    }
View Full Code Here

Examples of org.springframework.xd.dirt.cluster.Admin

      List<String> children = zkConnection.getClient().getChildren().forPath(Paths.build(Paths.ADMINS));
      for (String child : children) {
        byte[] data = zkConnection.getClient().getData().forPath(
            Paths.build(Paths.ADMINS, child));
        if (data != null && data.length > 0) {
          results.add(new Admin(child, ZooKeeperUtils.bytesToMap(data)));
        }
      }

    }
    catch (Exception e) {
View Full Code Here

Examples of org.teiid.adminapi.Admin

      @Doc(text = "username") String username,
      @Doc(text = "password") String password,
      @Doc(text = "connection name") String connectionName) throws AdminException {
    internalAdmin = AdminFactory.getInstance().createAdmin(username, password.toCharArray(), url);
    currentName = connectionName;
    Admin old = connections.put(connectionName, internalAdmin);
    if (old != null) {
      System.out.println("Closing previous admin associated with " + connectionName); //$NON-NLS-1$
      old.close();
    }
  }
View Full Code Here

Examples of org.teiid.adminapi.Admin

  }
 
  @Doc(text = "Use another connection")
  public static void useConnection(
      @Doc(text = "connection name") String name) {
    Admin admin = connections.get(name);
    if (admin == null) {
      System.out.println("Warning: connection is not active for " + name); //$NON-NLS-1$
      return;
    }
    internalAdmin = admin;
View Full Code Here

Examples of org.teiid.adminapi.Admin

      }
     
      this.csr.registerClientService(ILogon.class, logon, LogConstants.CTX_SECURITY);
      DQP dqpProxy = proxyService(DQP.class, this.dqpCore, LogConstants.CTX_DQP);
      this.csr.registerClientService(DQP.class, dqpProxy, LogConstants.CTX_DQP);
      Admin adminProxy = proxyService(Admin.class, admin, LogConstants.CTX_ADMIN_API);
      this.csr.registerClientService(Admin.class, adminProxy, LogConstants.CTX_ADMIN_API);
     
      ClientServiceRegistryImpl jdbcCsr = new ClientServiceRegistryImpl();
      jdbcCsr.registerClientService(ILogon.class, logon, LogConstants.CTX_SECURITY);
      jdbcCsr.registerClientService(DQP.class, dqpProxy, LogConstants.CTX_DQP);
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.