Package org.teiid.adminapi

Examples of org.teiid.adminapi.AdminComponentException


      for (MetaValue mv:sessions) {
        sessionList.add((SessionMetadata)MetaValueFactory.getInstance().unwrap(mv, SessionMetadata.class));
      }
      return sessionList;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }   
  }
View Full Code Here


  public void terminateSession(String sessionId) throws AdminException {
    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE)
      ManagedUtil.executeOperation(mc, "terminateSession", SimpleValueSupport.wrap(sessionId));//$NON-NLS-1$
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }      
  } 
View Full Code Here

      for (MetaValue mv:requests) {
        requestList.add((RequestMetadata)MetaValueFactory.getInstance().unwrap(mv, RequestMetadata.class));
      }
      return requestList;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }     
    }
View Full Code Here

      for (MetaValue mv:requests) {
        requestList.add((RequestMetadata)MetaValueFactory.getInstance().unwrap(mv, RequestMetadata.class));
      }
      return requestList;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }      
    }
View Full Code Here

  public void cancelRequest(String sessionId, long executionId) throws AdminException{
    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE)
      ManagedUtil.executeOperation(mc, "cancelRequest", SimpleValueSupport.wrap(sessionId), SimpleValueSupport.wrap(executionId));//$NON-NLS-1$
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }      
  }
View Full Code Here

      for (MetaValue mv:requests) {
        requestList.add(ManagedUtil.stringValue(mv));
      }
      return requestList;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
  } 
View Full Code Here

  public void clearCache(String cacheType) throws AdminException{
    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE)
      ManagedUtil.executeOperation(mc, "clearCache", SimpleValueSupport.wrap(cacheType));//$NON-NLS-1$
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }    
  }
View Full Code Here

    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE)
      ManagedUtil.executeOperation(mc, "clearCache", SimpleValueSupport.wrap(cacheType), //$NON-NLS-1$
          SimpleValueSupport.wrap(vdbName), SimpleValueSupport.wrap(version));
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }    
  }
View Full Code Here

      for (MetaValue mv:requests) {
        txnList.add((TransactionMetadata)MetaValueFactory.getInstance().unwrap(mv, TransactionMetadata.class));
      }
      return txnList;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
   
  } 
View Full Code Here

  public void terminateTransaction(String xid) throws AdminException {
    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE)
      ManagedUtil.executeOperation(mc, "terminateTransaction", MetaValueFactory.getInstance().create(xid));//$NON-NLS-1$
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }  
  }
View Full Code Here

TOP

Related Classes of org.teiid.adminapi.AdminComponentException

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.