Package AccessGrid :: Module Config :: Class GlobusConfig
[show private | hide private]
[frames | no frames]

Class GlobusConfig

Known Subclasses:
GlobusConfig

This object encapsulates the information required to correctly configure Globus and pyGlobus for use with the Access Grid Toolkit.
Method Summary
  __init__(self, initEnvIfNeeded)
This is the constructor, the only argument is used to indicate a desire to intialize the existing environment if it is discovered to be uninitialized.
  __str__(self)
  _repr_(self)
  GetDistCACertDir(self)
  GetDistCertFileName(self)
  GetDistKeyFileName(self)
  Getenv(self, name)
  GetHostname(self)
  GetLocation(self)
  GetProxyFileName(self)
  RemoveHostname(self)
  RemoveLocation(self)
  SetActiveCACertDir(self, dir)
  Setenv(self, name, val)
  SetHostname(self)
Ensure that we have a valid Globus hostname.
  SetLocation(self, location)
  SetProxyCert(self, proxyFile)
Configure globus runtime for using a proxy cert.
  SetUserCert(self, cert, key)
Configure globus runtime for using a cert and key pair.
  Unsetenv(self, name)

Instance Variable Summary
  caCertDir: the directory of Certificate Authority Certificates
  certFile: The filename of the X509 certificate.
  hostname: the Hostname for the globus configuration
  keyFile: The filename of the X509 key.
  location: the location of the globus installation
  proxyFile: THe filename for the globus proxy

Method Details

__init__(self, initEnvIfNeeded=0)
(Constructor)

This is the constructor, the only argument is used to indicate a desire to intialize the existing environment if it is discovered to be uninitialized.
Parameters:
initEnvIfNeeded - a flag indicating if this object should initialize the system if it is not.
           (type=integer)

SetHostname(self)

Ensure that we have a valid Globus hostname.

If GLOBUS_HOSTNAME is set, we will do nothing further.

Otherwise, we will inspect the hostname as returned by the socket.getfqdn() call. If it appears to be valid (where valid means that it maps to an IP address and we can locally bind to that address), we needn't do anythign, since the globus hostname calls will return the right thing.

Otherwise, we need to get our IP address using SystemConfig.GetLocalIPAddress()

SetProxyCert(self, proxyFile)

Configure globus runtime for using a proxy cert.

SetUserCert(self, cert, key)

Configure globus runtime for using a cert and key pair.

Instance Variable Details

caCertDir

the directory of Certificate Authority Certificates

certFile

The filename of the X509 certificate.

hostname

the Hostname for the globus configuration

keyFile

The filename of the X509 key.

location

the location of the globus installation

proxyFile

THe filename for the globus proxy

Generated by Epydoc 2.1 on Thu Apr 14 16:39:27 2005 http://epydoc.sf.net