sites_catalog
index
catalogs/sites_catalog.py

#  Copyright 2017-2018 University Of Southern California
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

 
Modules
       
os
platform

 
Classes
       
DirectoryType
GridType
JobType
OSType
SchedulerType
SitesCatalog

 
class DirectoryType
     Data and other attributes defined here:
LOCAL_SCRATCH = 'local-scratch'
LOCAL_STORAGE = 'local-storage'
SHARED_SCRATCH = 'shared-scratch'
SHARED_STORAGE = 'shared-storage'

 
class GridType
     Data and other attributes defined here:
BATCH = 'batch'
CONDOR = 'condor'
CREAM = 'cream'
DELTACLOUD = 'deltacloud'
EC2 = 'ec2'
GT2 = 'gt2'
GT4 = 'gt4'
GT5 = 'gt5'
LSF = 'lsf'
NORDUGRID = 'nordugrid'
PBS = 'pbs'
SGE = 'sge'
UNICORE = 'unicore'

 
class JobType
     Data and other attributes defined here:
AUXILLARY = 'auxillary'
CLEANUP = 'cleanup'
COMPUTE = 'compute'
REGISTER = 'register'
TRANSFER = 'transfer'

 
class OSType
     Data and other attributes defined here:
AIX = 'AIX'
LINUX = 'LINUX'
MACOSX = 'MACOSX'
SUNOS = 'SUNOS'
WINDOWS = 'WINDOWS'

 
class SchedulerType
     Data and other attributes defined here:
CONDOR = 'Condor'
FORK = 'Fork'
LSF = 'LSF'
PBS = 'PBS'
SGE = 'SGE'
UNKNOWN = 'unknown'

 
class SitesCatalog
     Methods defined here:
__init__(self, workflow_dir, filename='sites.xml')
Create a Pegasus site catalog.
:param workflow_dir: Path to the workflow directory
:param filename: sites catalog filename (default: sites.xml)
add_job_manager(self, handle, type, contact, scheduler, jobtype=None)
Add a job manager to a specific site.
:param handle: Site name
:param type: The universe name is actually the primary key for the jobmanager identification
:param contact: The contact string is the secondary key for any job manager
:param scheduler: Grid scheduler
:param jobtype: Type of Jobs in the executable workflow the grid supports
add_site(self, handle, arch='x86_64', os='LINUX')
Add a site to the sites catalog
:param handle: Site name
:param arch: Site architecture (default: x86_64)
:param os: Site OS (default: LINUX)
add_site_profile(self, handle, namespace, key, value='')
Add a profile to a specific site.
:param handle: Site name
:param namespace: Namespace values recognized by Pegasus
:param key: Profile key
:param value: Profile value (default: '')
write(self, force=False)
Write the sites catalog to a file.
:param force: whether to overwrite the catalog file

 
Data
        __author__ = 'Rafael Ferreira da Silva'
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)

 
Author
        Rafael Ferreira da Silva