public class StdModelClient extends CommonClient implements ModelClient
ModelClient.ModelServiceException| Constructor and Description |
|---|
StdModelClient(String url,
String user,
String passwd) |
| Modifier and Type | Method and Description |
|---|---|
void |
createModel(String acctId,
String modelName)
Create a model
|
void |
deleteModel(String acctId,
String modelName)
Delete a model
|
void |
deleteObject(ModelObjectLocator locator)
Delete an object given a locator
|
String |
getModelData(String acctId,
String modelName)
Get the JSON data for the given model
|
List<String> |
getModels(String acctId)
Get the list of visible models for the given account.
|
ModelReference |
getObject(ModelObjectLocator locator)
Get an object from a model
|
addApiAuth, addUserAuth, makePath, makeUrl, urlEncodepublic StdModelClient(String url, String user, String passwd) throws MalformedURLException
MalformedURLExceptionpublic List<String> getModels(String acctId) throws IOException, ModelClient.ModelServiceException
ModelClientgetModels in interface ModelClientIOExceptionModelClient.ModelServiceExceptionpublic String getModelData(String acctId, String modelName)
ModelClientgetModelData in interface ModelClientpublic void createModel(String acctId, String modelName)
ModelClientcreateModel in interface ModelClientpublic void deleteModel(String acctId, String modelName)
ModelClientdeleteModel in interface ModelClientpublic ModelReference getObject(ModelObjectLocator locator)
ModelClientgetObject in interface ModelClientpublic void deleteObject(ModelObjectLocator locator)
ModelClientdeleteObject in interface ModelClientCopyright © 2020 continual.io. All rights reserved.