@Override public void undeploy(String deployedName) throws AdminException { ModelNode request; try { request = buildUndeployRequest(deployedName, false); } catch (OperationFormatException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70010, e, "Failed to build operation"); //$NON-NLS-1$ } execute(request); }
public void undeploy(String deployedName, boolean force) throws AdminException { ModelNode request; try { request = buildUndeployRequest(deployedName, force); } catch (OperationFormatException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70010, e, "Failed to build operation"); //$NON-NLS-1$ } execute(request); }
@Override public void undeploy(String deployedName) throws AdminException { ModelNode request; try { request = buildUndeployRequest(deployedName, false); } catch (OperationFormatException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70010, e, "Failed to build operation"); //$NON-NLS-1$ } execute(request); }
public void undeploy(String deployedName, boolean force) throws AdminException { ModelNode request; try { request = buildUndeployRequest(deployedName, force); } catch (OperationFormatException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70010, e, "Failed to build operation"); //$NON-NLS-1$ } execute(request); }
@Override public void cancelRequest(String sessionId, long executionId) throws AdminException { final ModelNode request = buildRequest("teiid", "cancel-request", "session", sessionId, "execution-id", String.valueOf(executionId));//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70021, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70022, e); } }
@Override public void cancelRequest(String sessionId, long executionId) throws AdminException { final ModelNode request = buildRequest("teiid", "cancel-request", "session", sessionId, "execution-id", String.valueOf(executionId));//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70021, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70022, e); } }
private void execute(final ModelNode request) throws AdminException { try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70006, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70007, e); } }
private void execute(final ModelNode request) throws AdminException { try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70006, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70007, e); } }
@Override public void markDataSourceAvailable(String jndiName) throws AdminException { final ModelNode request = buildRequest("teiid", "mark-datasource-available","ds-name", jndiName);//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70049, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70050, e); } }
@Override public void terminateSession(String sessionId) throws AdminException { final ModelNode request = buildRequest("teiid", "terminate-session", "session", sessionId);//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70029, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70030, e); } }
@Override public void terminateSession(String sessionId) throws AdminException { final ModelNode request = buildRequest("teiid", "terminate-session", "session", sessionId);//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70029, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70030, e); } }
@Override public void markDataSourceAvailable(String jndiName) throws AdminException { final ModelNode request = buildRequest("teiid", "mark-datasource-available","ds-name", jndiName);//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70049, Util.getFailureDescription(outcome)); } } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70050, e); } }
private Collection<String> executeList(final ModelNode request) throws AdminException { try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, STRINGMAPPER, true, true); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70014, e); } }
private Collection<String> executeList(final ModelNode request) throws AdminException { try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, STRINGMAPPER, true, true); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70014, e); } }
private List<String> getChildNodeNames(String subsystem, String childNode) throws AdminException { final ModelNode request = buildRequest(subsystem, "read-children-names", "child-type", childNode);//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return Util.getList(outcome); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70015, e); } }
private List<String> getChildNodeNames(String subsystem, String childNode) throws AdminException { final ModelNode request = buildRequest(subsystem, "read-children-names", "child-type", childNode);//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return Util.getList(outcome); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70015, e); } }
@Override public Collection<? extends EngineStatistics> getEngineStats() throws AdminException { final ModelNode request = buildRequest("teiid", "engine-statistics");//$NON-NLS-1$ //$NON-NLS-2$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, VDBMetadataMapper.EngineStatisticsMetadataMapper.INSTANCE, false, false); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70013, e); } }
@Override public Collection<? extends Request> getRequests() throws AdminException { final ModelNode request = buildRequest("teiid", "list-requests");//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, RequestMetadataMapper.INSTANCE, false, true); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70023, e); } }
@Override public Collection<? extends Session> getSessions() throws AdminException { final ModelNode request = buildRequest("teiid", "list-sessions");//$NON-NLS-1$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, SessionMetadataMapper.INSTANCE, false, true); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70025, e); } }
@Override public List<? extends VDB> getVDBs() throws AdminException { final ModelNode request = buildRequest("teiid", "list-vdbs");//$NON-NLS-1$ //$NON-NLS-2$ try { ModelNode outcome = this.connection.execute(request); if (!Util.isSuccess(outcome)) { throw new AdminProcessingException(AdminPlugin.Event.TEIID70039, Util.getFailureDescription(outcome)); } return getDomainAwareList(outcome, VDBMetadataMapper.INSTANCE, true, true); } catch (IOException e) { throw new AdminComponentException(AdminPlugin.Event.TEIID70036, e); } }