Package Ganga :: Package Lib :: Package Executable :: Module Executable' :: Class Executable :: Class _proxyClass
[hide private]
[frames] | no frames]

Class _proxyClass

source code

    object --+    
             |    
GPIProxyObject --+
                 |
                Lib.Executable.Executable'.Executable._proxyClass


    Executable application -- running arbitrary programs.
    
    When you want to run on a worker node an exact copy of your script you should specify it as a File object. Ganga will
    then ship it in a sandbox:
       app.exe = File('/path/to/my/script')

    When you want to execute a command on the worker node you should specify it as a string. Ganga will call the command
    with its full path on the worker node:
       app.exe = '/bin/date'

    A command string may be either an absolute path ('/bin/date') or a command name ('echo').
    Relative paths ('a/b') or directory paths ('/a/b/') are not allowed because they have no meaning
    on the worker node where the job executes.

    The arguments may be specified in the following way:
       app.args = ['-v',File('/some/input.dat')]

    This will yield the following shell command: executable -v input.dat
    The input.dat will be automatically added to the input sandbox.

    If only one argument is specified the the following abbreviation may be used:
       apps.args = '-v'
    
    

Properties:

     exe  A path (string) or a File object specifying an executable.. (simple
          property, default='echo',comparable)

     env  Environment. (simple property, default={},comparable)

     args List of arguments for the executable. Arguments may be strings,
          numerics or File objects.. (simple property, list, default=['Hello
          World'],comparable)

Nested Classes [hide private]
  _impl
This is a Ganga.GPI.Executable implementation class.
Instance Methods [hide private]
 
__eq__(self, x)
Equality operator (==), compare the Executable properties which are declared as [comparable].
source code
 
__init__(self, *args, **kwds)
GPI Executable object constructor: Executable() : create executable with default settings; Executable(e) : make a copy of e; Executable(e,x=a,...): make a copy of e and set property 'x' to a, etc..
source code
 
__ne__(self, x)
Non-equality operator (!=).
source code
 
__repr__(self)
Return an short representation of Executable object.
source code
 
__setattr__(self, x, v)
Set a property of Executable with consistency and safety checks.
source code
 
__str__(self)
Return a printable string representing Executable object as a tree of properties.
source code
 
copy(self)
Make an identical copy of self.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  args = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at ...
  env = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0...
  exe = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwds)
(Constructor)

source code 

GPI Executable object constructor: Executable() : create executable with default settings; Executable(e) : make a copy of e; Executable(e,x=a,...): make a copy of e and set property 'x' to a, etc..

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return an short representation of Executable object.

Overrides: object.__repr__

__setattr__(self, x, v)

source code 

Set a property of Executable with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.

Overrides: object.__setattr__

__str__(self)
(Informal representation operator)

source code 

Return a printable string representing Executable object as a tree of properties.

Overrides: object.__str__

Class Variable Details [hide private]

args

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x1ca7e50>

env

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x1ca7dd0>

exe

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x1ca7d50>