Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.vcs.changelist
Class ChangeListEventQueue

java.lang.Object
  extended by oracle.jdeveloper.vcs.changelist.ChangeListEventQueue


public class ChangeListEventQueue
extends java.lang.Object

Event queue used to schedule updates to the ChangeList. Rather than updating immediately, the ChangeList periodically wakes up and executes any pending events on the queue.


Constructor Summary
ChangeListEventQueue(ChangeList changeList)
          Construct the change list event queue for the specified change list with a default delay.
ChangeListEventQueue(ChangeList changeList, int updateDelay)
          Construct the event queue with the specified delay.

 

Method Summary
 void addEventListener(ChangeListEventListener eventListener)
           
protected  void addRemovedEntryURLs(java.util.Collection<VCSHashURL> urls, java.net.URL directoryUrl, VCSCancellable cancellable)
           
protected  ChangeListItem createChangeListItem(java.net.URL url)
          Create a new ChangeListItem for the given URL.
protected  ChangeListItem createChangeListItem(java.net.URL url, boolean bOverlay)
          Create a new ChangeListItem for the given URL.
protected  ChangeListItem[] createChangeListItems(java.net.URL[] urls)
          Creates an array of ChangeListItems for the given URLs.
protected  ChangeListItem[] createChangeListItems(java.net.URL[] urls, boolean bOverlay)
          Creates an array of ChangeListItems for the given URLs.
 void enqueue(ChangeListEvent event)
          Place an event on the queue.
protected  void filterByStatus(java.util.Collection<VCSHashURL> urls)
           
protected  int getBatchCount()
          Number of urls the change list should search for status on - the batch count
protected  ChangeList getChangeList()
           
 java.lang.String getSystemId()
           
 int getUpdateDelay()
          Get the delay before processing events.
 boolean isAlive()
          Asks the queue whether it is still alive and processing events.
protected  java.util.Collection<VCSHashURL> listProjectURLs(Project project, ChangeListProjectContent projectContent, VCSCancellable cancellable)
           
protected  java.util.Collection<VCSHashURL> listURLsForRoot(java.net.URL root, oracle.jdeveloper.vcs.cache.Depth depth)
           
protected  boolean overridesFilterByStatus()
           
protected  boolean overridesRootTraversal()
           
protected  void processEvent(ChangeListEvent cle)
           
protected  void processOverlayChange(java.net.URL[] urls)
           
protected  void processRequeryEvent(ChangeListEvent cle)
           
 void removeEventListener(ChangeListEventListener eventListener)
           
protected  void setChangeListBusy(boolean isBusy)
          Set whether the change list is busy.
 void setSystemId(java.lang.String vcsId)
           
 void setUpdateDelay(int updateDelay)
          Set the delay to use before processing incoming events.
protected  boolean supportsRemovedEntries()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ChangeListEventQueue

public ChangeListEventQueue(ChangeList changeList)
Construct the change list event queue for the specified change list with a default delay.
Parameters:
changeList - the change list to use

ChangeListEventQueue

public ChangeListEventQueue(ChangeList changeList,
                            int updateDelay)
Construct the event queue with the specified delay.
Parameters:
changeList - the change list to use
updateDelay - time to delay until processing events.

Method Detail

setSystemId

public final void setSystemId(java.lang.String vcsId)

getSystemId

public final java.lang.String getSystemId()

getChangeList

protected ChangeList getChangeList()

addEventListener

public void addEventListener(ChangeListEventListener eventListener)

removeEventListener

public void removeEventListener(ChangeListEventListener eventListener)

setUpdateDelay

public void setUpdateDelay(int updateDelay)
Set the delay to use before processing incoming events.
Parameters:
updateDelay - the delay before processing incoming events

getUpdateDelay

public int getUpdateDelay()
Get the delay before processing events.
Returns:
the delay before processing incoming events

isAlive

public boolean isAlive()
Asks the queue whether it is still alive and processing events.
Returns:
a verdict on the life of the event queue.

enqueue

public void enqueue(ChangeListEvent event)
Place an event on the queue.
Parameters:
event - the event ot queue.

createChangeListItems

protected ChangeListItem[] createChangeListItems(java.net.URL[] urls)
Creates an array of ChangeListItems for the given URLs.
Parameters:
urls - the URLs.
Returns:
the created ChangeListItems.

createChangeListItems

protected ChangeListItem[] createChangeListItems(java.net.URL[] urls,
                                                 boolean bOverlay)
Creates an array of ChangeListItems for the given URLs.
Parameters:
urls - the URLs.
Returns:
the created ChangeListItems.

createChangeListItem

protected ChangeListItem createChangeListItem(java.net.URL url)
Create a new ChangeListItem for the given URL.
Parameters:
url - the URL.
Returns:
the created ChangeListItem.

createChangeListItem

protected ChangeListItem createChangeListItem(java.net.URL url,
                                              boolean bOverlay)
Create a new ChangeListItem for the given URL.
Parameters:
url - the URL.
bOverlay - true create ChangeListItem with an overlay
Returns:
the created ChangeListItem.

setChangeListBusy

protected void setChangeListBusy(boolean isBusy)
Set whether the change list is busy. Utility method which ensures the property is changed on the event dispatch thread.
Parameters:
isBusy - value to set the busy property to.

processEvent

protected void processEvent(ChangeListEvent cle)
                     throws java.lang.Exception
Throws:
java.lang.Exception

processRequeryEvent

protected void processRequeryEvent(ChangeListEvent cle)
                            throws java.lang.Exception
Throws:
java.lang.Exception

listURLsForRoot

protected java.util.Collection<VCSHashURL> listURLsForRoot(java.net.URL root,
                                                           oracle.jdeveloper.vcs.cache.Depth depth)

listProjectURLs

protected java.util.Collection<VCSHashURL> listProjectURLs(Project project,
                                                           ChangeListProjectContent projectContent,
                                                           VCSCancellable cancellable)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

supportsRemovedEntries

protected boolean supportsRemovedEntries()

overridesRootTraversal

protected boolean overridesRootTraversal()

overridesFilterByStatus

protected boolean overridesFilterByStatus()

addRemovedEntryURLs

protected void addRemovedEntryURLs(java.util.Collection<VCSHashURL> urls,
                                   java.net.URL directoryUrl,
                                   VCSCancellable cancellable)
                            throws java.lang.Exception
Throws:
java.lang.Exception

filterByStatus

protected void filterByStatus(java.util.Collection<VCSHashURL> urls)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getBatchCount

protected int getBatchCount()
Number of urls the change list should search for status on - the batch count
Returns:
batch count

processOverlayChange

protected void processOverlayChange(java.net.URL[] urls)
                             throws java.lang.Exception
Throws:
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.