@Override public DataSourceDescription getDataSourceDescriptionByName(String name) { return execRtn(()->get().getDataSourceDescriptionByName(name)); }
@Override public Id newDataSource(String name, String uri) { return execRtn(()->get().newDataSource(name, uri)); }
@Override public DataSourceDescription getDataSourceDescription(Id dsRef) { return execRtn(()->get().getDataSourceDescription(dsRef)); }
@Override public void removeDataSource(Id dsRef) { exec(()->get().removeDataSource(dsRef)); }
@Override public PatchLogInfo getPatchLogInfo(Id dsRef) { return execRtn(()->get().getPatchLogInfo(dsRef)); }
@Override public List<DataSourceDescription> listDescriptions() { return execRtn(()->get().listDescriptions()); }
@Override public DataSourceDescription getDataSourceDescriptionByURI(String uri) { return execRtn(()->get().getDataSourceDescriptionByURI(uri)); }
@Override public String initialState(Id dsRef) { return execRtn(()->get().initialState(dsRef)); }
/** * Test whether patch log exists or not. * Calling {@link #getDataSourceDescriptionByName} to get details,or null, is better than * calling {@code existsByName} if the description is needed. */ public default boolean existsByName(String name) { return getDataSourceDescriptionByName(name) != null; }
@Override public List<Id> listDatasets() { return execRtn(()->get().listDatasets()); }
@Override public List<PatchLogInfo> listPatchLogInfo() { return execRtn(()->get().listPatchLogInfo()); }
/** * No-op end-to-end operation. This operation succeeds or throws an exception. * This operation makes one attempt only to perform the ping. */ public void ping() { dLink.ping(); }
protected List<DataSourceDescription> getDescriptions() { if ( descriptions == null ) descriptions = dLink.listDescriptions(); return descriptions; }
/** Return details of a patch log, or null if not registered. */ public DataSourceDescription getDataSourceDescription() { return dLink.getDataSourceDescription(dsRef); } }
/** * Return a {@link DeltaLog} object for the specificed patch log. * This does not guarantee the log exists - use {@link #exists} to check * if required. */ public default DeltaLog getDeltaLog(Id dsRef) { return new DeltaLog(this, dsRef); }
/** * Test whether patch log exists or not. * Calling {@link #getDataSourceDescriptionByURI} to get details,or null, is better than * calling {@code existsByURI} if the description is needed. */ public default boolean existsByURI(String uri) { return getDataSourceDescriptionByURI(uri) != null; }