public final class AlgorithmiaClient
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AlgorithmiaClient(Auth auth,
int maxConnections)
Instantiate Algorithmia client with the given auth and max number of connections
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
algo(java.lang.String algoUri)
Initialize an Algorithm object from this client
|
DataDirectory |
dir(java.lang.String path)
Initialize a DataDirectory object from this client
|
DataFile |
file(java.lang.String path)
Initialize an DataFile object from this client
|
protected AlgorithmiaClient(Auth auth, int maxConnections)
auth
- Algorithmia Auth object, a null auth object is valid, though only
correct for within the Algorithmia platformmaxConnections
- public Algorithm algo(java.lang.String algoUri)
algoUri
- the algorithm's URI, e.g., algo://user/algonamepublic DataDirectory dir(java.lang.String path)
path
- to a data directory, e.g., data://.my/foopublic DataFile file(java.lang.String path)
path
- to a data file, e.g., data://.my/foo/bar.txt