public abstract class ModelRepository
extends java.lang.Object
Constructor and Description |
---|
ModelRepository(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String modelStoreName)
Create a model store with the provided name.
|
abstract PgxFuture<java.lang.Void> |
createAsync(java.lang.String modelStoreName)
Non-blocking version of the create method.
|
void |
deleteModel(java.lang.String modelStoreName, java.lang.String modelName)
Delete the model in the specified model store, with the given model name.
|
abstract PgxFuture<java.lang.Void> |
deleteModelAsync(java.lang.String modelStoreName, java.lang.String modelName)
Non-blocking version of the deleteModel method.
|
void |
deleteModelStore(java.lang.String modelStoreName)
Delete a model store by name.
|
abstract PgxFuture<java.lang.Void> |
deleteModelStoreAsync(java.lang.String modelStoreName)
Non-blocking version of the deleteModelStore method.
|
java.lang.String |
getModelDescription(java.lang.String modelStoreName, java.lang.String modelName)
Retrieve the description of the model in the specified model store, with the given model name.
|
abstract PgxFuture<java.lang.String> |
getModelDescriptionAsync(java.lang.String modelStoreName, java.lang.String modelName)
Non-blocking version of the getModelDescription method.
|
java.util.List<java.lang.String> |
listModels(java.lang.String modelStoreName)
Lists the models present in the model store with the given name.
|
abstract PgxFuture<java.util.List<java.lang.String>> |
listModelsAsync(java.lang.String modelStoreName)
Non-blocking version of the listModels method.
|
java.util.List<java.lang.String> |
listModelStoresNames()
List all model store names.
|
abstract PgxFuture<java.util.List<java.lang.String>> |
listModelStoresNamesAsync()
Non-blocking version of the listModelStoresNames method.
|
java.util.List<java.lang.String> |
listModelStoresNamesMatching(java.lang.String regex)
List all model store names that match the provided regex.
|
public ModelRepository(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
public void create(java.lang.String modelStoreName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
modelStoreName
- the name of the model storejava.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.lang.Void> createAsync(java.lang.String modelStoreName)
create(String)
public void deleteModel(java.lang.String modelStoreName, java.lang.String modelName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
modelStoreName
- the name of the model storemodelName
- the name under which the model was storedjava.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.lang.Void> deleteModelAsync(java.lang.String modelStoreName, java.lang.String modelName)
deleteModel(String, String)
public void deleteModelStore(java.lang.String modelStoreName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
modelStoreName
- the name of the model storejava.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.lang.Void> deleteModelStoreAsync(java.lang.String modelStoreName)
deleteModelStore(String)
public java.lang.String getModelDescription(java.lang.String modelStoreName, java.lang.String modelName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
modelStoreName
- the name of the model storemodelName
- the name under which the model was storedjava.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.lang.String> getModelDescriptionAsync(java.lang.String modelStoreName, java.lang.String modelName)
getModelDescription(String, String)
public java.util.List<java.lang.String> listModels(java.lang.String modelStoreName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
modelStoreName
- the name of the model storejava.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.util.List<java.lang.String>> listModelsAsync(java.lang.String modelStoreName)
listModels(String)
public java.util.List<java.lang.String> listModelStoresNames() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public abstract PgxFuture<java.util.List<java.lang.String>> listModelStoresNamesAsync()
listModelStoresNames()
public java.util.List<java.lang.String> listModelStoresNamesMatching(java.lang.String regex) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
regex
- the regex that is used to filter the model store names.java.util.concurrent.ExecutionException
java.lang.InterruptedException