header

Configuration of the C++ and Java command line clients

Configuration of the C++ command line client

The AMGA C++ command line clients as well as all other executables using the MDClient class of the C++ client package need to read an mdclient.config file for their configuration. This configuration file is searched first in the current directory, then as $HOME/.mdclient.config and finally as /usr/etc/mdclient.config. Only the port and server of the configuration file can be overridden on the command line of the clients:

  $ mdclient [-p port] [hostname]

The following is an example configuration file:

  $ cat mdclient.config
  # Connection options
  Host = localhost
  Port = 8822
  
  # User settings
  Login = koblitz
  PermissionMask = rwx
  GroupMask = r-x
  Home = /

  # Security options
  UseSSL = yes 
  # AuthenticateWithCertificate = 1
  # CertFile=/home/koblitz/.globus/usercert.pem
  # KeyFile=/home/koblitz/.globus/userkey.pem
  # UseGridProxy = 1
  # Password = secret
  # VerifyServerCert = 1
  # IgnoreCertificateNameMismatch = 0

  # If server certificates are verified, local certificates need to be loaded:
  # TrustedCertDir = /etc/grid-security/certificates

The following options are supported:

Configuration of the Java command line client

The Java client also reads its configuration from a file, called by default mdjavaclient.config. This file is searched in the same places as the C++ API looks for the mdclient.config, that is, first in the current directory, then in $HOME/.mdclient.config and finally on /usr/etc/mdjavaclient.config. Like the C++ client, only the port and server of the configuration file can be overridden on the command line of the clients:

  $ mdjavaclient.sh [-p port] [hostname]

Next are the properties recognized on the mdjavaclient.config file. The following have the same sintax as in the C++ configuration.

The following exist only on the the Java configuration file or else have a slightly different syntax:


Generated on Mon Apr 16 13:59:18 2012 for AMGA by  doxygen 1.4.7