@Service(value=ProfileWatcher.class) public class ProfileWatcherImpl extends AbstractComponent implements ProfileWatcher
| Constructor and Description |
|---|
ProfileWatcherImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String url)
Adds a Bundle URLs to the watch list.
|
protected java.util.Map<ProfileVersionKey,java.util.Map<java.lang.String,Parser>> |
findProfileArifacts()
For each profile and version return the map of bundle locations to parsers
|
protected java.util.SortedSet<java.lang.String> |
getCurrentActiveProfileVersions()
Gets the set of active profile ids and versions
|
long |
getInterval() |
java.io.File |
getLocalRepository() |
java.util.Map<ProfileVersionKey,java.util.Map<java.lang.String,Parser>> |
getProfileArtifacts()
Returns the currently known profile artifacts
|
java.util.List<java.lang.String> |
getWatchURLs() |
boolean |
isRunning() |
boolean |
isUpload() |
void |
remove(java.lang.String url)
Removes a bundle URLs from the watch list.
|
protected org.ops4j.pax.url.maven.commons.MavenConfiguration |
retrieveMavenConfiguration() |
void |
run() |
void |
setInterval(long interval) |
void |
setUpload(boolean upload) |
void |
setWatchURLs(java.util.List<java.lang.String> watchURLs) |
void |
start() |
void |
stop()
Stops the execution of the thread and releases the singleton instance
|
protected void |
uploadFile(java.lang.String bundleUrl,
Parser parser,
java.io.File fileToUpload)
Uploads the given file to the fabric maven proxy
|
boolean |
wildCardMatch(java.lang.String text) |
boolean |
wildCardMatch(java.lang.String text,
java.lang.String pattern)
Matches text using a pattern containing wildcards.
|
activateComponent, assertValid, deactivateComponent, isValidpublic void run()
run in interface java.lang.Runnablepublic java.util.Map<ProfileVersionKey,java.util.Map<java.lang.String,Parser>> getProfileArtifacts()
getProfileArtifacts in interface ProfileWatcherprotected void uploadFile(java.lang.String bundleUrl,
Parser parser,
java.io.File fileToUpload)
public void add(java.lang.String url)
add in interface ProfileWatcherurl - public void remove(java.lang.String url)
remove in interface ProfileWatcherurl - protected java.util.SortedSet<java.lang.String> getCurrentActiveProfileVersions()
protected java.util.Map<ProfileVersionKey,java.util.Map<java.lang.String,Parser>> findProfileArifacts() throws java.lang.Exception
java.lang.Exceptionpublic java.io.File getLocalRepository()
protected org.ops4j.pax.url.maven.commons.MavenConfiguration retrieveMavenConfiguration()
public boolean wildCardMatch(java.lang.String text)
wildCardMatch in interface ProfileWatcherpublic boolean wildCardMatch(java.lang.String text,
java.lang.String pattern)
wildCardMatch in interface ProfileWatchertext - pattern - public void start()
start in interface ProfileWatcherpublic void stop()
stop in interface ProfileWatcherpublic java.util.List<java.lang.String> getWatchURLs()
getWatchURLs in interface ProfileWatcherpublic void setWatchURLs(java.util.List<java.lang.String> watchURLs)
public long getInterval()
public void setInterval(long interval)
setInterval in interface ProfileWatcherpublic boolean isRunning()
public boolean isUpload()
public void setUpload(boolean upload)
setUpload in interface ProfileWatcherCopyright © 2014 Red Hat. All Rights Reserved.