Package com.yetanalytics.xapi.client
Class LRS
- java.lang.Object
-
- com.yetanalytics.xapi.client.LRS
-
public class LRS extends Object
Object for holding LRS connection details for StatementClient.
-
-
Constructor Summary
Constructors Constructor Description LRS(String host, String key, String secret)
Constructor to create an LRS object with specific connection paramsLRS(String host, String key, String secret, Integer batchSize)
Constructor to create an LRS object with specific connection params
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getBatchSize()
URI
getHost()
String
getKey()
String
getSecret()
void
setBatchSize(Integer batchSize)
void
setHost(URI host)
void
setKey(String key)
void
setSecret(String secret)
-
-
-
Constructor Detail
-
LRS
public LRS(String host, String key, String secret, Integer batchSize)
Constructor to create an LRS object with specific connection params- Parameters:
host
- Host for LRS. Should include path, e.g. 'http://lrs.yetanalytics.com/xapi'key
- Key for LRS credentialssecret
- Secret for LRS credentialsbatchSize
- Optional post batch size, defaults to 50
-
-
Method Detail
-
getHost
public URI getHost()
-
setHost
public void setHost(URI host)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getSecret
public String getSecret()
-
setSecret
public void setSecret(String secret)
-
getBatchSize
public Integer getBatchSize()
-
setBatchSize
public void setBatchSize(Integer batchSize)
-
-