org.rhq.enterprise.server.content
Interface DistributionManagerRemote

All Known Implementing Classes:
DistributionManagerBean

public interface DistributionManagerRemote

Author:
Pradeep Kilambi

Method Summary
 Distribution createDistribution(Subject subject, java.lang.String kslabel, java.lang.String basepath, DistributionType disttype)
          Creates a new kickstart tree in the system.
 void deleteDistributionByDistId(Subject subject, int distId)
          Deletes a given instance of kickstart tree object.
 void deleteDistributionByRepo(Subject subject, int repoId)
          Deletes a given instance of kickstart tree object.
 void deleteDistributionFilesByDistId(Subject subject, int distid)
          delete distribution file based on distro id
 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 kickstart tree based on a given label
 Distribution getDistributionByPath(java.lang.String basepath)
          get kickstart tree based on base path
 java.util.List<DistributionFile> getDistributionFilesByDistId(int distid)
          get distribution file based on distro id
 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 kickstart tree 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 -
basepath -
Returns:
newly created kickstart tree object
Throws:
DistributionException

deleteDistributionByRepo

void deleteDistributionByRepo(Subject subject,
                              int repoId)
                              throws java.lang.Exception
Deletes a given instance of kickstart tree object. If the object does not exist

Parameters:
subject -
repoId -
Throws:
java.lang.Exception

deleteDistributionByDistId

void deleteDistributionByDistId(Subject subject,
                                int distId)
                                throws java.lang.Exception
Deletes a given instance of kickstart tree object. If the object does not exist

Parameters:
subject -
distId -
Throws:
java.lang.Exception

getDistributionBits

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

Parameters:
subject -
kslabel -
Throws:
java.lang.Exception

getDistributionByLabel

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

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

getDistributionByPath

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

Parameters:
basepath - location on filesystem
Returns:
kstree object

getDistributionFilesByDistId

java.util.List<DistributionFile> getDistributionFilesByDistId(int distid)
get distribution file based on distro id

Parameters:
distid -
Returns:

deleteDistributionFilesByDistId

void deleteDistributionFilesByDistId(Subject subject,
                                     int distid)
delete distribution file based on distro id

Parameters:
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.