StatusCache
.@Deprecated public abstract class VCSStatusCache extends VCSURLBasedCache implements oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
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 and Description |
---|
VCSStatusCache()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Clears the cached version statuses for all URLs.
|
void |
clear(java.net.URL url)
Deprecated.
Clears the cached version status for the given URL.
|
void |
clear(java.net.URL[] urls)
Deprecated.
Clears the cached version statuses for the given URLs.
|
void |
clear(URLFilter filter)
Deprecated.
Clears the cached version statuses for URLs accepted by the given filter.
|
protected java.lang.Object[] |
createValueArray(int length)
Deprecated.
|
VCSStatus |
get(java.net.URL url)
Deprecated.
Gets the status of a single URL.
|
VCSStatus[] |
get(java.net.URL[] urls)
Deprecated.
Gets the version statuses for the given URLs.
|
VCSStatus |
getEDT(java.net.URL url)
Deprecated.
This method is provided for API compatibility purposes.
|
VCSStatus[] |
getEDT(java.net.URL[] urls)
Deprecated.
This method is provided for API compatibility purposes.
|
protected abstract void |
getImpl(java.net.URL[] urls,
VCSStatus[] statuses)
Deprecated.
Gets current statuses for the given URLs, populating the status array.
|
protected void |
getValuesImpl(java.net.URL[] urls,
java.lang.Object[] values)
Deprecated.
|
void |
invalidate()
Deprecated.
This method is provided for API compatibility purposes.
|
boolean |
isLocalCache()
Deprecated.
|
VCSStatusCache |
newLocalCache()
Deprecated.
|
java.net.URL[] |
search(URLFilter filter)
Deprecated.
Searches the version status cache for URLs accepted by the given filter.
|
addCacheListener, callUnderWriteLock, clearValue, clearValues, clearValues, clearValues, clearValues, clearValuesInternal, dispose, getValue, getValueInternal, getValueInternal, getValues, getValuesImpl, putValueInternal, putValueInternal, removeCacheListener, runUnderWriteLock, searchValues
protected 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
get
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
url
- the URL for the status query.java.lang.Exception
public VCSStatus[] get(java.net.URL[] urls) throws java.lang.Exception
get
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
urls
- the array of URLs for the status query.java.lang.Exception
- if a critical exception occurred.public final VCSStatus getEDT(java.net.URL url) throws java.lang.Exception
getEDT
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
java.lang.Exception
#get(URL)}
public final VCSStatus[] getEDT(java.net.URL[] urls) throws java.lang.Exception
getEDT
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
java.lang.Exception
#get(URL[])}
public void invalidate()
invalidate
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
#clear()}
public void clear()
clear
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
public void clear(java.net.URL url)
clear
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
url
- the URL for clearing from the cache.public void clear(java.net.URL[] urls)
clear
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
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.public VCSStatusCache newLocalCache()
newLocalCache
in interface oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus>
newLocalCache
in class VCSURLBasedCache
public boolean isLocalCache()
isLocalCache
in class VCSURLBasedCache