net.myrrix.web
Class RunnerConfiguration
java.lang.Object
net.myrrix.web.RunnerConfiguration
public final class RunnerConfiguration
- extends Object
Configuration for a Runner. This configures the Serving Layer server instance that it runs.
- Author:
- Sean Owen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_SECURE_PORT
public static final int DEFAULT_SECURE_PORT
- See Also:
- Constant Field Values
DEFAULT_INSTANCE_ID
public static final int DEFAULT_INSTANCE_ID
- See Also:
- Constant Field Values
RunnerConfiguration
public RunnerConfiguration()
getBucket
public String getBucket()
- Returns:
- bucket name under which to locate Computation Layer data in distributed mode.
Used with
getInstanceID().
setBucket
public void setBucket(String bucket)
getInstanceID
public long getInstanceID()
- Returns:
- instance ID that the Serving Layer will use, when interacting with a Computation Layer in
distributed mode. Used with
getBucket().
setInstanceID
public void setInstanceID(long instanceID)
getPort
public int getPort()
- Returns:
- port on which the Serving Layer listens for non-secure HTTP connections
setPort
public void setPort(int port)
getSecurePort
public int getSecurePort()
- Returns:
- port on which the Serving Layer listens for secure HTTPS connections, if applicable
setSecurePort
public void setSecurePort(int securePort)
getKeystoreFile
public File getKeystoreFile()
- Returns:
- keystore file that contains the SSL keys used for HTTPS connections, if any; if not set
the instance will not listen for HTTPS connections
setKeystoreFile
public void setKeystoreFile(File keystoreFile)
getKeystorePassword
public String getKeystorePassword()
- Returns:
- password for
getKeystoreFile(), if applicable
setKeystorePassword
public void setKeystorePassword(String keystorePassword)
getLocalInputDir
public File getLocalInputDir()
- Returns:
- local directory from which input is read, to which output is written, and in which intermediate
model files are stored
setLocalInputDir
public void setLocalInputDir(File localInputDir)
getUserName
public String getUserName()
- Returns:
- user name which must be supplied to access the Serving Layer with HTTP DIGEST authentication,
if applicable; none is required if this is not specified
setUserName
public void setUserName(String userName)
getPassword
public String getPassword()
- Returns:
- password which must be supplied to access the Serving Layer with HTTP DIGEST authentication,
if applicable; none is required if this is not specified
setPassword
public void setPassword(String password)
isConsoleOnlyPassword
public boolean isConsoleOnlyPassword()
- Returns:
- true if username and password only apply to admin / console resources
setConsoleOnlyPassword
public void setConsoleOnlyPassword(boolean consoleOnlyPassword)
getRescorerProviderClassName
public String getRescorerProviderClassName()
- Returns:
- the name of an implementation of
RescorerProvider, if one should be
used to modify the results of the recommendations and similarity computations, or null if
none is to be used. The class must be made available on the server's classpath.
setRescorerProviderClassName
public void setRescorerProviderClassName(String rescorerProviderClassName)
getPartition
public Integer getPartition()
- Returns:
- the partition number of this Serving Layer server, among all partitions. Only applicable in distributed
mode, and returns
null otherwise. - See Also:
getAllPartitionsSpecification()
setPartition
public void setPartition(Integer partition)
getAllPartitionsSpecification
public String getAllPartitionsSpecification()
- Returns:
- specification for all servers that have partitions. Only applicable in distributed mode and returns
null otherwise. Serving Layers are specified as "host:port".
Replicas are specified as many Serving Layers, separated by commas, like "rep1:port1,rep2:port2,...".
Finally, partitions are specified as multiple replicas separated by semicolon, like
"part1rep1:port11,part1rep2:port12;part2rep1:port21,part2rep2:port22;...". Example:
"foo:80,foo2:8080;bar:8080;baz2:80,baz3:80" - See Also:
getPartition()
setAllPartitionsSpecification
public void setAllPartitionsSpecification(String allPartitionsSpecification)
Copyright © 2012. All Rights Reserved.