|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.Observable
oracle.jdeveloper.vcs.spi.VCSURLBasedCache
oracle.jdeveloper.vcs.spi.VCSStatusCache
public abstract class VCSStatusCache
Utility class for caching URLs' version status values. This class takes care of all cache responsibilities. Concrete subclasses are required to provide the implementation for returning uncached statuses as determined by the version control system. The cache is observable; attached observers are updated with an array of URLs whose statuses have been cleared (and hence may have changed).
Constructor Summary | |
---|---|
VCSStatusCache() |
Method Summary | |
---|---|
void |
clear() Clears the cached version statuses for all URLs. |
void |
clear(java.net.URL url) Clears the cached version status for the given URL. |
void |
clear(java.net.URL[] urls) Clears the cached version statuses for the given URLs. |
void |
clear(URLFilter filter) Clears the cached version statuses for URLs accepted by the given filter. |
protected java.lang.Object[] |
createValueArray(int length) |
VCSStatus |
get(java.net.URL url) Gets the status of a single URL. |
VCSStatus[] |
get(java.net.URL[] urls) Gets the version statuses for the given URLs. |
protected abstract void |
getImpl(java.net.URL[] urls, VCSStatus[] statuses) Gets current statuses for the given URLs, populating the status array. |
protected void |
getValuesImpl(java.net.URL[] urls, java.lang.Object[] values) |
java.net.URL[] |
search(URLFilter filter) Searches the version status cache for URLs accepted by the given filter. |
Methods inherited from class oracle.jdeveloper.vcs.spi.VCSURLBasedCache |
---|
addCacheListener, callUnderWriteLock, clearValue, clearValues, clearValues, clearValues, clearValues, clearValuesInternal, getValue, getValueInternal, getValueInternal, getValues, getValuesImpl, putValueInternal, putValueInternal, removeCacheListener, runUnderWriteLock, searchValues |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCSStatusCache()
Method Detail |
---|
protected final void getValuesImpl(java.net.URL[] urls, java.lang.Object[] values) throws java.lang.Exception
getValuesImpl
in class VCSURLBasedCache
java.lang.Exception
protected final java.lang.Object[] createValueArray(int length)
createValueArray
in class VCSURLBasedCache
public final VCSStatus get(java.net.URL url) throws java.lang.Exception
url
- the URL for the status query.java.lang.Exception
public VCSStatus[] get(java.net.URL[] urls) throws java.lang.Exception
urls
- the array of URLs for the status query.java.lang.Exception
- if a critical exception occurred.public void clear()
public void clear(java.net.URL url)
url
- the URL for clearing from the cache.public void clear(java.net.URL[] urls)
urls
- the URLs for clearing from the cache.public void clear(URLFilter filter)
filter
- a filter that accepts URLs for clearing from the cache.public java.net.URL[] search(URLFilter filter)
filter
- a filter that accepts URLs to return.protected abstract void getImpl(java.net.URL[] urls, VCSStatus[] statuses) throws java.lang.Exception
urls
- the array of URLs for the status query.statuses
- the array of current version statuses to populate.java.lang.Exception
- if a critical exception occurred.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |