Package org.teiid.adminapi

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


  }
 
  @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

      }
     
      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

Related Classes of org.teiid.adminapi.Admin

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.