Package org.jenkinsci.plugins.p4.tasks
Class PollTask
java.lang.Object
org.jenkinsci.plugins.p4.tasks.AbstractTask
org.jenkinsci.plugins.p4.tasks.PollTask
- All Implemented Interfaces:
FilePath.FileCallable<List<P4Ref>>,Serializable,org.jenkinsci.remoting.RoleSensitive
public class PollTask
extends AbstractTask
implements FilePath.FileCallable<List<P4Ref>>, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRoles(org.jenkinsci.remoting.RoleChecker checker) voidvoidsetPollRefChanges(List<P4PollRef> pollRefs) task(ClientHelper p4) Implements the P4 task to retry if necessaryMethods inherited from class org.jenkinsci.plugins.p4.tasks.AbstractTask
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setup, setWorkspace, tryTask
-
Constructor Details
-
PollTask
-
-
Method Details
-
invoke
public List<P4Ref> invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException - Specified by:
invokein interfaceFilePath.FileCallable<List<P4Ref>>- Throws:
IOException
-
task
Description copied from class:AbstractTaskImplements the P4 task to retry if necessary- Specified by:
taskin classAbstractTask- Parameters:
p4- P4 connection helper- Returns:
- Task object
- Throws:
Exception- push up stack
-
setLimit
-
setPollRefChanges
-
getPollRefChanges
-
checkRoles
- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-