uk.ac.rdg.resc.jstyx.gridservice.server
Class SGSServerConfig

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.gridservice.server.SGSServerConfig

public class SGSServerConfig
extends java.lang.Object

Configuration of a Styx Grid Service server

Author:
Jon Blower $Revision: 568 $ $Date: 2006-01-05 12:09:15 +0000 (Thu, 05 Jan 2006) $ $Log$ Revision 1.10 2006/01/05 12:09:15 jonblower Restructured configuration to give default values for server settings Revision 1.9 2005/11/28 17:21:17 jonblower Allowed for tag not existing in config file Revision 1.8 2005/11/07 21:04:48 jonblower Moved SGS config classes to new package Revision 1.7 2005/05/16 11:00:53 jonblower Changed SGS config XML file structure: separated input and output streams and changed some tag names Revision 1.6 2005/05/11 13:45:19 jonblower Converted SGS config code to use dom4j and Jaxen for XML parsing Revision 1.5 2005/03/26 14:27:53 jonblower Modified to use SGSConfigException Revision 1.4 2005/03/24 17:33:51 jonblower Improved reading of service parameters from config file Revision 1.3 2005/03/24 07:57:41 jonblower Improved code for reading SSL info from SGSconfig file and included parameter information for the Grid Services in the config file Revision 1.2 2005/03/22 17:45:25 jonblower Now reads SSL switch from config file Revision 1.1 2005/03/16 22:16:44 jonblower Added Styx Grid Service classes to core module Revision 1.1 2005/02/16 19:22:32 jonblower Commit adding of SGS files to CVS

Field Summary
protected  java.util.Vector gridServices
           
protected  java.lang.String host
           
protected  java.lang.String keystore
           
protected  int port
           
protected  boolean useSSL
           
 
Constructor Summary
SGSServerConfig(java.lang.String xmlFilename)
          Creates a new server configuration from the given XML document
 
Method Summary
 java.lang.String getCacheLocation()
           
 java.lang.String getHostAddress()
           
 java.lang.String getKeystoreLocation()
           
 int getPort()
           
 java.util.Iterator getSGSConfigInfo()
           
 boolean getUseSSL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected int port

host

protected java.lang.String host

useSSL

protected boolean useSSL

keystore

protected java.lang.String keystore

gridServices

protected java.util.Vector gridServices
Constructor Detail

SGSServerConfig

public SGSServerConfig(java.lang.String xmlFilename)
                throws SGSConfigException
Creates a new server configuration from the given XML document

Throws:
java.lang.Exception - i
SGSConfigException
Method Detail

getPort

public int getPort()
Returns:
The number of the port on which the server will listen

getHostAddress

public java.lang.String getHostAddress()
Returns:
The host address (hostname or IP address) of this server. This is the address of the server from the point of view of clients (i.e. the public address)

getUseSSL

public boolean getUseSSL()
Returns:
true if the server is to use SSL, false otherwise

getKeystoreLocation

public java.lang.String getKeystoreLocation()
Returns:
the location of the keystore file, or null if the server is not using SSL

getCacheLocation

public java.lang.String getCacheLocation()
Returns:
the location of the cache of files that will be created by the SGSs

getSGSConfigInfo

public java.util.Iterator getSGSConfigInfo()
Returns:
iterator of all the SGSConfig objects (one per SGS)


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.