org.rhq.enterprise.server.content
Interface DistributionManagerLocal

All Known Implementing Classes:
DistributionManagerBean

public interface DistributionManagerLocal

Author:
Pradeep Kilambi

Method Summary
 Distribution createDistribution(Subject subject, java.lang.String kslabel, java.lang.String basepath, DistributionType disttype)
          Creates a new distribution in the system.
 void deleteDistributionByDistId(Subject subject, int distId)
          Deletes a given instance of distribution object.
 void deleteDistributionByRepo(Subject subject, int repoId)
          Deletes a given instance of distribution object.
 void deleteDistributionFilesByDistId(Subject subject, int distid)
          delete list of distribution files
 void getDistributionBits(Subject subject, java.lang.String kslabel)
          get the kickstart tree bits either from database or filesystem based on kickstart label
 Distribution getDistributionByLabel(java.lang.String kslabel)
          get distribution based on a given label
 Distribution getDistributionByPath(java.lang.String basepath)
          get distribution tree based on base path
 java.util.List<DistributionFile> getDistributionFilesByDistId(int distid)
          get list of distribution files
 DistributionType getDistributionTypeByName(java.lang.String name)
          Returns a DistributionType for given name
 

Method Detail

createDistribution

Distribution createDistribution(Subject subject,
                                java.lang.String kslabel,
                                java.lang.String basepath,
                                DistributionType disttype)
                                throws DistributionException
Creates a new distribution in the system. If the tree does not exist, it will be created. If a tree exists with the specified version ID, a new one will not be created and the existing tree will be returned.

Parameters:
subject -
kslabel - kickstart tree label
basepath - ks base path on filesystem
Returns:
newly created distribution tree object
Throws:
DistributionException

deleteDistributionByRepo

void deleteDistributionByRepo(Subject subject,
                              int repoId)
Deletes a given instance of distribution object. If the object does not exist

Parameters:
subject -
repoId -

deleteDistributionByDistId

void deleteDistributionByDistId(Subject subject,
                                int distId)
Deletes a given instance of distribution object. If the object does not exist

Parameters:
subject -
distId -

getDistributionBits

void getDistributionBits(Subject subject,
                         java.lang.String kslabel)
get the kickstart tree bits either from database or filesystem based on kickstart label

Parameters:
subject -
kslabel -

getDistributionByLabel

Distribution getDistributionByLabel(java.lang.String kslabel)
get distribution based on a given label

Parameters:
kslabel - distribution tree label
Returns:
kickstart tree object

getDistributionByPath

Distribution getDistributionByPath(java.lang.String basepath)
get distribution tree based on base path

Parameters:
basepath - location on filesystem
Returns:
kstree object

getDistributionFilesByDistId

java.util.List<DistributionFile> getDistributionFilesByDistId(int distid)
get list of distribution files

Parameters:
distid -
Returns:
list of distro file by dist id

deleteDistributionFilesByDistId

void deleteDistributionFilesByDistId(Subject subject,
                                     int distid)
delete list of distribution files

Parameters:
subject -
distid -

getDistributionTypeByName

DistributionType getDistributionTypeByName(java.lang.String name)
Returns a DistributionType for given name

Parameters:
name - name of distribution type
Returns:
distribution type from db


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.