Examples of AdminComponentException


Examples of org.teiid.adminapi.AdminComponentException

    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE);
      MetaValue value = ManagedUtil.executeOperation(mc, "getWorkerPoolStatistics");//$NON-NLS-1$
      return (WorkerPoolStatistics)MetaValueFactory.getInstance().unwrap(value, WorkerPoolStatisticsMetadata.class)
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
  } 
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

          p.setRequired(mp.isMandatory());
          props.add(p);
      };
      return props;
    } catch (NoSuchDeploymentException e) {
      throw new AdminComponentException(e.getMessage(), e);
    } catch(Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
  } 
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

      }
   
    try {
      getView().updateComponent(mc);
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
    }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

        }
       
    try {
      getView().updateComponent(mc);
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }           
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

    }
   
    try {
      getView().updateComponent(mc);
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }   
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

          SimpleValueSupport.wrap(sourceVDBName),
          SimpleValueSupport.wrap(sourceVDBVersion),
          SimpleValueSupport.wrap(targetVDBName),
          SimpleValueSupport.wrap(targetVDBVersion));
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }      
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

        }
      }
      info.getProperties().get("jndi-name").setValue(SimpleValueSupport.wrap(deploymentName)); //$NON-NLS-1$
      getView().applyTemplate(deploymentName, info);
    } catch (NoSuchDeploymentException e) {
      throw new AdminComponentException(e.getMessage(), e);
    } catch(Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

      ManagedComponent mc = getDatasource(deployedName);
      if (mc != null) {
        ManagedUtil.removeArchive(getDeploymentManager(),mc.getDeployment().getName());
      }
    } catch (Exception e) {
      throw new AdminComponentException(e);
    }
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

        for (ManagedComponent mc:mcs) {
          names.add(((SimpleValue)mc.getProperty("jndi-name").getValue()).getValue().toString()); //$NON-NLS-1$
        }     
      }
    } catch (Exception e) {
      throw new AdminComponentException(e);
    }
    return names;
  }
View Full Code Here

Examples of org.teiid.adminapi.AdminComponentException

    try {
      ManagedComponent mc = getView().getComponent(DQPNAME, DQPTYPE);
      MetaValue value = ManagedUtil.executeOperation(mc, "getCacheStatistics", SimpleValueSupport.wrap(cacheType));//$NON-NLS-1$
      return (CacheStatistics)MetaValueFactory.getInstance().unwrap(value, CacheStatisticsMetadata.class)
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }
  }
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.