@Override public Type getModelType() { try { return Type.valueOf(modelType); } catch(IllegalArgumentException e) { return Type.OTHER; } }
public void setMetadataStatus(String status) { if (status != null) { this.metadataStatus = Model.MetadataStatus.valueOf(status); } }
@Override public void onFailure(String msg) throws AdminProcessingException { throw new AdminProcessingException(AdminPlugin.Event.TEIID70026, msg); }
@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 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); } }
public void setConnectionType(String allowConnections) { this.connectionType = ConnectionType.valueOf(allowConnections); }
public void setModelType(Model.Type modelType) { this.modelType = modelType.name(); }
void onFailure(String msg) throws AdminProcessingException { throw new AdminProcessingException(AdminPlugin.Event.TEIID70006, msg); } }
@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); } }
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); } }
public void setConnectionType(String allowConnections) { this.connectionType = ConnectionType.valueOf(allowConnections); }
@Override public Type getModelType() { try { return Type.valueOf(modelType); } catch(IllegalArgumentException e) { return Type.OTHER; } }
public void setMetadataStatus(String status) { if (status != null) { this.metadataStatus = Model.MetadataStatus.valueOf(status); } }
public void setModelType(Model.Type modelType) { this.modelType = modelType.name(); }
void onFailure(String msg) throws AdminProcessingException { throw new AdminProcessingException(AdminPlugin.Event.TEIID70006, msg); } }
@Override public void onFailure(String msg) throws AdminProcessingException { throw new AdminProcessingException(AdminPlugin.Event.TEIID70026, msg); }
@Override public void terminateTransaction(String threadId) throws AdminException { if (threadId == null) { return; } try { cancelTransactions(threadId, false); } catch (XATransactionException e) { throw new AdminProcessingException(QueryPlugin.Event.TEIID30542, e); } }
@Override public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName) throws AdminException { //deprecated throw new AdminProcessingException(RuntimePlugin.Util.gs(RuntimePlugin.Event.TEIID40130, "getTranslatorPropertyDefinitions")); //$NON-NLS-1$ }
@Override public void cancelRequest(String sessionId, long executionId) throws AdminException { try { this.dqp.cancelRequest(sessionId, executionId); } catch (TeiidComponentException e) { throw new AdminProcessingException(e); } }