|
|||||||||
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.Server edu.sdsc.inca.Depot
public class Depot
The main depot object.
This object is responsible for retrieving configuration information, starting and cleaning up after the server as well as shutdown. Configuration is handled by default using inca.properties in the classpath.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.sdsc.inca.Server |
---|
edu.sdsc.inca.Server.ClientDispatcher, edu.sdsc.inca.Server.ServerShutdownHook |
Field Summary | |
---|---|
protected static java.lang.String |
DEPOT_OPTS
|
protected boolean |
initDb
|
protected static org.jboss.logging.Logger |
logger
|
protected boolean |
rmDb
|
Fields inherited from class edu.sdsc.inca.Server |
---|
ACCEPT_TIMEOUT, cd, CLIENT_TIMEOUT, SERVER_OPTS, ssocket, tempPath, workerCount, workers, workQueue |
Fields inherited from class edu.sdsc.inca.Component |
---|
authenticate, cert, certPath, COMPONENT_OPTS, hostname, key, keyPath, logFile, password, port, trusted, trustedPath |
Constructor Summary | |
---|---|
Depot()
Default Constructor. |
Method Summary | |
---|---|
void |
initializeDatabase()
Initialize the Inca database. |
static void |
main(java.lang.String[] args)
Start the depot from the command line. |
void |
removeDatabase()
Delete the Inca database. |
void |
setConfiguration(java.util.Properties config)
A convenience function for setting multiple configuration properties at once. |
Methods inherited from class edu.sdsc.inca.Server |
---|
getTempPath, getWorkerCount, isRunning, runServer, setTempPath, setWorkerCount, shutdown |
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 |
---|
protected static final org.jboss.logging.Logger logger
protected static final java.lang.String DEPOT_OPTS
protected boolean initDb
protected boolean rmDb
Constructor Detail |
---|
public Depot()
Method Detail |
---|
public void initializeDatabase() throws org.hibernate.HibernateException
org.hibernate.HibernateException
- on database errorpublic void removeDatabase() throws org.hibernate.HibernateException
org.hibernate.HibernateException
- on database errorpublic void setConfiguration(java.util.Properties config) throws edu.sdsc.inca.ConfigurationException
setConfiguration
in class edu.sdsc.inca.Server
config
- contains client configuration values
ConfigurationException
- on a faulty configuration property valuepublic static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |