@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, isValid
public void run()
run
in interface java.lang.Runnable
public java.util.Map<ProfileVersionKey,java.util.Map<java.lang.String,Parser>> getProfileArtifacts()
getProfileArtifacts
in interface ProfileWatcher
protected void uploadFile(java.lang.String bundleUrl, Parser parser, java.io.File fileToUpload)
public void add(java.lang.String url)
add
in interface ProfileWatcher
url
- public void remove(java.lang.String url)
remove
in interface ProfileWatcher
url
- 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.Exception
public java.io.File getLocalRepository()
protected org.ops4j.pax.url.maven.commons.MavenConfiguration retrieveMavenConfiguration()
public boolean wildCardMatch(java.lang.String text)
wildCardMatch
in interface ProfileWatcher
public boolean wildCardMatch(java.lang.String text, java.lang.String pattern)
wildCardMatch
in interface ProfileWatcher
text
- pattern
- public void start()
start
in interface ProfileWatcher
public void stop()
stop
in interface ProfileWatcher
public java.util.List<java.lang.String> getWatchURLs()
getWatchURLs
in interface ProfileWatcher
public void setWatchURLs(java.util.List<java.lang.String> watchURLs)
public long getInterval()
public void setInterval(long interval)
setInterval
in interface ProfileWatcher
public boolean isRunning()
public boolean isUpload()
public void setUpload(boolean upload)
setUpload
in interface ProfileWatcher
Copyright © 2014 Red Hat. All Rights Reserved.