|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tum.in.targeteam.pool.PoolCreator
This class supports maintaining pools of different kinds. It must be used locally on the server, i.e. at the same place where the PoolManager will be started.
Optionally, a source pool or a source directory may be specified. It is needed for some of the methods.
| Constructor Summary | |
PoolCreator()
Constructor for a PoolCreator without source. |
|
PoolCreator(Pool pool)
Constructor for a PoolCreator. |
|
| Method Summary | |
void |
copyPool(java.lang.String url)
Create a pool and copy the content from the source pool into it. |
void |
copyPool(java.lang.String url,
java.lang.String regexp)
Create a pool and copy the content from the source pool into it. |
void |
createPool(java.lang.String url)
Create a pool. |
void |
deletePool(java.lang.String url)
Delete a pool. |
void |
mergePool(java.lang.String url)
Merge the content from the source pool into an existing local pool. |
void |
mergePool(java.lang.String url,
java.lang.String regexp)
Merge the content from the source pool into an existing local pool. |
void |
updatePool(java.lang.String url)
Update an existing pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PoolCreator(Pool pool)
pool - the source pool.public PoolCreator()
| Method Detail |
public void createPool(java.lang.String url)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the pool. This must not be
a targeteam server url.
ArgumentException - If the pool already exists or
cannot be created or if the url is not valid or if no source
has been specified.
java.io.IOException - If any failure happens when initializing the
new pool.
CorruptedPoolException - if the source pool content is not valid.
public void deletePool(java.lang.String url)
throws java.io.IOException,
ArgumentException
url - the url for identifying the pool. This must not be
a targeteam server url.
ArgumentException - if there is a syntax error in the
url or the pool does not exist.
java.io.IOException
public void copyPool(java.lang.String url)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the pool. This must not be
a targeteam server url.
ArgumentException - If the pool already exists or
cannot be created or if the url is not valid or if no source
has been specified or if the source is not a pool.
java.io.IOException - If any failure happens when initializing the
new pool.
CorruptedPoolException - if the source pool content is not valid.
public void copyPool(java.lang.String url,
java.lang.String regexp)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the pool. This must not be
a targeteam server url.regexp - the regular expression for matching node names.
ArgumentException - If the pool already exists or
cannot be created or if the url is not valid or if no source
has been specified or if the source is not a pool.
java.io.IOException - If any failure happens when initializing the
new pool.
CorruptedPoolException - if the source pool content is not valid.
public void mergePool(java.lang.String url)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the target pool. This must not be
a targeteam server url.
ArgumentException - If the pool url is not valid or if no source
has been specified or if the source is not a pool.
java.io.IOException - If any failure happens when initializing the
new pool.
CorruptedPoolException - if the source pool content is not valid.
public void mergePool(java.lang.String url,
java.lang.String regexp)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the target pool. This must not be
a targeteam server url.regexp - the regular expression for matching node names.
ArgumentException - If the pool url is not valid or if no source
has been specified or if the source is not a pool.
java.io.IOException - If any failure happens when initializing the
new pool.
CorruptedPoolException - if the source pool content is not valid.
public void updatePool(java.lang.String url)
throws ArgumentException,
java.io.IOException,
CorruptedPoolException
url - the url for identifying the pool.
ArgumentException - If the pool does not exist or the
url is not valid or no source has been specified.
java.io.IOException - If any failure happens when updating the
pool.
CorruptedPoolException - if the pool content is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||