Package org.teiid.adminapi

Examples of org.teiid.adminapi.AdminComponentException


        if (session.getVDBName().equals(vdbName) && session.getVDBVersion() == vdbVersion) {
          requests.addAll(this.dqpCore.getRequestsForSession(session.getSessionId()));
        }
      }
    } catch (SessionServiceException e) {
      throw new AdminComponentException(e);
    }
    return requests;
  }
View Full Code Here


    @ManagementOperation(description="Cancel a Request",params={@ManagementParameter(name="sessionId",description="The session Identifier"), @ManagementParameter(name="executionId",description="The Execution Identifier")})   
    public boolean cancelRequest(String sessionId, long executionId) throws AdminException {
      try {
      return this.dqpCore.cancelRequest(sessionId, executionId);
    } catch (TeiidComponentException e) {
      throw new AdminComponentException(e);
    }
    }
View Full Code Here

  @ManagementOperation(description="Active sessions", impact=Impact.ReadOnly)
  public Collection<SessionMetadata> getActiveSessions() throws AdminException {
    try {
      return this.sessionService.getActiveSessions();
    } catch (SessionServiceException e) {
      throw new AdminComponentException(e);
    }
  }
View Full Code Here

  @ManagementProperty(description="Active session count", use={ViewUse.STATISTIC}, readOnly=true)
  public int getActiveSessionsCount() throws AdminException{
    try {
      return this.sessionService.getActiveSessionsCount();
    } catch (SessionServiceException e) {
      throw new AdminComponentException(e);
    }
  }
View Full Code Here

                } catch(NamingException e) {
                  ProfileService ps =  (ProfileService)ic.lookup(SECURE_PROFILE_SERVICE_JNDI_NAME);
                  return (ProfileService)Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[] {ProfileService.class}, new JaasSecurityHandler(ps, this.userName, this.password));
                }
          } catch(NamingException e) {
            throw new AdminComponentException(e);
          } finally {
            Thread.currentThread().setContextClassLoader(originalContextClassLoader);
          }
    }
View Full Code Here

        targetInfo.getProperties().get("config-property").setValue(metaValue);//$NON-NLS-1$         
      }
      return this.targetTemplate.applyTemplate(targetInfo);

    } catch (NoSuchDeploymentException e) {
      throw new AdminComponentException(e.getMessage(), e);
    } catch(Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
    }   
  }
View Full Code Here

          if (mp.isMandatory()) {
            if( mp.getDefaultValue() != null) {
              props.put(name, ManagedUtil.stringValue(mp.getDefaultValue()));
            }
            else {
              throw new AdminComponentException(IntegrationPlugin.Util.getString("property_required_not_found", mp.getName(), templateName));//$NON-NLS-1$ 
            }
          }
        }
      }
    }
View Full Code Here

      Set<ManagedComponent> mcSet = getView().getComponentsForType(TRANSLATOR_TYPE);
      for (ManagedComponent mc:mcSet) {
        factories.add(AdminObjectBuilder.buildAO(mc, TranslatorMetaData.class));
      }
    } catch (Exception e) {
      throw new AdminComponentException(e);
    }
    return factories;
  }
View Full Code Here

            return mc;
          }
      }
      return null;
    } catch (Exception e) {
      throw new AdminComponentException(e.getMessage(), e);
   
  }
View Full Code Here

      for (ManagedComponent mc: vdbComponents) {
        vdbs.add(AdminObjectBuilder.buildAO(mc, VDBMetaData.class));
      }
      return vdbs;
    } 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.