|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.platform.content.yum.YumProxy
public class YumProxy
Represents the yum command line tool.
| Constructor Summary | |
|---|---|
YumProxy()
|
|
| Method Summary | |
|---|---|
void |
cleanMetadata()
Clean the yum metadata Equal to "yum clean metadata" |
void |
init(ResourceContext resourceContext)
Initialize the proxy with the current system information. |
void |
install(java.util.Collection<java.lang.String> packages)
Install the specified packages. |
void |
remove(java.util.Collection<java.lang.String> packages)
Remove the specified packages. |
void |
update()
Update packages Equal to "yum update" |
java.lang.String |
version()
Get the version of the yum executable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YumProxy()
| Method Detail |
|---|
public void init(ResourceContext resourceContext)
resourceContext - contains things like plugin config and system information
public java.lang.String version()
throws java.lang.Exception
java.lang.Exception
public void install(java.util.Collection<java.lang.String> packages)
throws java.lang.Exception
packages - A list of packages to install.
java.lang.Exception - On any error.
public void remove(java.util.Collection<java.lang.String> packages)
throws java.lang.Exception
packages - A list of packages to remove.
java.lang.Exception - On any error.
public void cleanMetadata()
throws java.lang.Exception
java.lang.Exception - On any error.
public void update()
throws java.lang.Exception
java.lang.Exception - On any error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||