|
||||||||||
| 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(Collection<String> packages)
Install the specified packages. |
void |
remove(Collection<String> packages)
Remove the specified packages. |
void |
update()
Update packages Equal to "yum update" |
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 String version()
throws Exception
Exception
public void install(Collection<String> packages)
throws Exception
packages - A list of packages to install.
Exception - On any error.
public void remove(Collection<String> packages)
throws Exception
packages - A list of packages to remove.
Exception - On any error.
public void cleanMetadata()
throws Exception
Exception - On any error.
public void update()
throws Exception
Exception - On any error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||