public class CobblerDistroHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
org.cobbler.Distro |
createDistroFromTree(org.cobbler.CobblerConnection cobblerConnection,
KickstartableTree tree)
Create a new (non-XEN) cobbler Distro from the given tree.
|
org.cobbler.Distro |
createXenDistroFromTree(org.cobbler.CobblerConnection cobblerConnection,
KickstartableTree tree)
Create a new XEN cobbler Distro from the given tree.
|
static CobblerDistroHelper |
getInstance()
Returns an instance of this this class (singleton).
|
void |
updateDistroFromTree(org.cobbler.Distro distro,
KickstartableTree tree)
Update the existing (non-XEN) cobbler Distro using data from the given tree.
|
void |
updateXenDistroFromTree(org.cobbler.Distro distro,
KickstartableTree tree)
Update the existing XEN cobbler Distro using data from the given tree.
|
public static CobblerDistroHelper getInstance()
public org.cobbler.Distro createDistroFromTree(org.cobbler.CobblerConnection cobblerConnection, KickstartableTree tree)
cobblerConnection
- connection to use to communicate with Cobblertree
- tree containing information for creating the new Distropublic org.cobbler.Distro createXenDistroFromTree(org.cobbler.CobblerConnection cobblerConnection, KickstartableTree tree)
cobblerConnection
- connection to use to communicate with Cobblertree
- tree containing information for creating the new Distropublic void updateDistroFromTree(org.cobbler.Distro distro, KickstartableTree tree)
distro
- Distro instance to be updatedtree
- tree containing information for updating the new Distropublic void updateXenDistroFromTree(org.cobbler.Distro distro, KickstartableTree tree)
distro
- Distro instance to be updatedtree
- tree containing information for updating the new Distro