|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.Component edu.sdsc.inca.Consumer
public class Consumer
Starts up a Jetty server to server our Inca webapp. Reads configuration params from standard properties, waits for webapp to start, and then adds the configuration params to the webapp. This allows the password to be passed via stdin.
Field Summary | |
---|---|
static java.lang.String |
AGENT_BEAN_ID
|
static java.lang.String |
CONFIG_ID
|
static java.lang.String |
CONSUMER_OPTS
|
static java.lang.String |
DEPOT_BEAN_ID
|
Fields inherited from class edu.sdsc.inca.Component |
---|
authenticate, cert, certPath, COMPONENT_OPTS, hostname, key, keyPath, logFile, password, port, trusted, trustedPath |
Constructor Summary | |
---|---|
Consumer()
|
Method Summary | |
---|---|
java.util.Properties |
getClientConfiguration()
Returns configuration properties for clients (e.g., agent and depot). |
java.lang.String |
getTempPath()
Returns the path where the server stores temporary files. |
boolean |
isRunning()
Determine if Jetty server is running. |
static void |
main(java.lang.String[] args)
Start up the consumer server. |
void |
setClientConfiguration(java.util.Properties props)
Sets the configuration properties for clients (e.g., agent and depot). |
void |
setConfiguration(java.util.Properties config)
Read in the configuration for the consumer from the specified properties list. |
void |
setTempPath(java.lang.String path)
Sets the directory path where the Server stores temporary files. |
void |
shutdown()
|
void |
startConsumer()
Runs a Jetty server. |
Methods inherited from class edu.sdsc.inca.Component |
---|
addTrustedCert, configComponent, createSocket, getAuthenticate, getCertificate, getCertificatePath, getHostname, getKey, getKeyPath, getLogFile, getPassword, getPort, getTrustedCertificates, getTrustedPath, getUri, openResourceStream, readCredentials, readVersion, setAuthenticate, setCertificatePath, setHostname, setKeyPath, setLogFile, setPassword, setPort, setTrustedPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AGENT_BEAN_ID
public static final java.lang.String CONFIG_ID
public static final java.lang.String DEPOT_BEAN_ID
public static final java.lang.String CONSUMER_OPTS
Constructor Detail |
---|
public Consumer()
Method Detail |
---|
public java.util.Properties getClientConfiguration()
public java.lang.String getTempPath()
public boolean isRunning()
public void setClientConfiguration(java.util.Properties props)
props
- a list of configuration properties for clientspublic void setConfiguration(java.util.Properties config) throws edu.sdsc.inca.ConfigurationException
setConfiguration
in class edu.sdsc.inca.Component
config
- A list of configuration options for the consumer
ConfigurationException
public void setTempPath(java.lang.String path) throws edu.sdsc.inca.ConfigurationException
path
- the temporary directory path
ConfigurationException
- if the path can't be read from the classpathpublic void shutdown()
public void startConsumer() throws java.lang.Exception
java.lang.Exception
- if unable to start up Jetty server and consumer threadspublic static void main(java.lang.String[] args)
args
- array of command line arguments to configure the consumer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |