hudson.plugins.clearcase.action
Class DefaultPollAction

java.lang.Object
  extended by hudson.plugins.clearcase.action.DefaultPollAction
All Implemented Interfaces:
PollAction
Direct Known Subclasses:
BasePollAction, UcmPollAction

public abstract class DefaultPollAction
extends java.lang.Object
implements PollAction

Default action for polling for changes in a repository.


Field Summary
protected  java.util.List<Filter> filters
           
 
Constructor Summary
DefaultPollAction(ClearTool cleartool, java.util.List<Filter> filters)
           
 
Method Summary
protected  boolean filterEntry(HistoryEntry entry)
           
 boolean getChanges(java.util.Date time, java.lang.String viewName, java.lang.String[] branchNames, java.lang.String[] viewPaths)
          Returns if the repository has any changes since the specified time
protected abstract  ClearToolFormatHandler getHistoryFormatHandler()
           
protected  boolean parseHistoryOutputForChanges(java.io.BufferedReader reader)
           
protected abstract  HistoryEntry parseLine(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filters

protected java.util.List<Filter> filters
Constructor Detail

DefaultPollAction

public DefaultPollAction(ClearTool cleartool,
                         java.util.List<Filter> filters)
Method Detail

getChanges

public boolean getChanges(java.util.Date time,
                          java.lang.String viewName,
                          java.lang.String[] branchNames,
                          java.lang.String[] viewPaths)
                   throws java.io.IOException,
                          java.lang.InterruptedException
Description copied from interface: PollAction
Returns if the repository has any changes since the specified time

Specified by:
getChanges in interface PollAction
Parameters:
time - check for changes since this time
viewName - the name of the view
branchNames - the branch names
viewPaths - optional vob paths
Returns:
true, if the ClearCase repository has changes; false, otherwise.
Throws:
java.io.IOException
java.lang.InterruptedException

getHistoryFormatHandler

protected abstract ClearToolFormatHandler getHistoryFormatHandler()

parseLine

protected abstract HistoryEntry parseLine(java.lang.String line)
                                   throws java.text.ParseException
Throws:
java.text.ParseException

parseHistoryOutputForChanges

protected boolean parseHistoryOutputForChanges(java.io.BufferedReader reader)
                                        throws java.io.IOException,
                                               java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

filterEntry

protected boolean filterEntry(HistoryEntry entry)


Copyright © 2009. All Rights Reserved.