|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.platform.content.yum.YumServer
public class YumServer
Provides a bare-bones http server for yum requests. It is designed to be a non-concurrent server to ensure that requests are handled one at a tiem. This is neccessary because the server caches the local metadata files. A concurrent server would either duplicate the work required (separate files per thread) to construct the local metadata or each thread would step-on the shared metadata files. Either way, a concurrent server should be sufficient for a single client.
| Constructor Summary | |
|---|---|
YumServer()
|
|
| Method Summary | |
|---|---|
void |
cleanMetadata()
Clean the cached metadata. |
void |
halt()
Stop (halt/run=false) the server thread. |
boolean |
isStarted()
|
void |
removeYumConfiguration()
Remove the etc/yum.repos.d/ackbar.conf configuration file. |
void |
start(YumContext context)
Starts the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YumServer()
| Method Detail |
|---|
public void start(YumContext context)
throws Exception
context - The server's context.
Exception - On all errors.public void halt()
public boolean isStarted()
public void cleanMetadata()
public void removeYumConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||