AdminComponentException
This exception class is capable of containing multiple exceptions. See {@link AdminException} for details.
247248249250251252253254
for (MetaValue mv:sessions) { sessionList.add((SessionMetadata)MetaValueFactory.getInstance().unwrap(mv, SessionMetadata.class)); } return sessionList; } catch (Exception e) { throw new AdminComponentException(e.getMessage(), e); } }
257258259260261262263264
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); } }
273274275276277278279280
for (MetaValue mv:requests) { requestList.add((RequestMetadata)MetaValueFactory.getInstance().unwrap(mv, RequestMetadata.class)); } return requestList; } catch (Exception e) { throw new AdminComponentException(e.getMessage(), e); } }
289290291292293294295296
299300301302303304305306
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); } }
315316317318319320321322
for (MetaValue mv:requests) { requestList.add(ManagedUtil.stringValue(mv)); } return requestList; } catch (Exception e) { throw new AdminComponentException(e.getMessage(), e); } }
325326327328329330331332
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); } }
336337338339340341342343
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); } }
352353354355356357358359
for (MetaValue mv:requests) { txnList.add((TransactionMetadata)MetaValueFactory.getInstance().unwrap(mv, TransactionMetadata.class)); } return txnList; } catch (Exception e) { throw new AdminComponentException(e.getMessage(), e); } }
362363364365366367368369
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); } }