Class AbstractPublisherTask<V>
- java.lang.Object
-
- jenkins.security.MasterToSlaveCallable<V,UploadException>
-
- org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask<V>
-
- All Implemented Interfaces:
hudson.remoting.Callable<V,UploadException>,Serializable,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
InternalAppSharingUploadTask
public abstract class AbstractPublisherTask<V> extends MasterToSlaveCallable<V,UploadException>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapplicationIdprotected StringeditIdprotected com.google.api.services.androidpublisher.AndroidPublisher.EditseditServiceprotected PrintStreamlogger
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Vcall()protected voidcommit()protected voidcreateEdit(String applicationId)Creates a new edit, assigning theeditId.protected abstract Vexecute()protected StringgetCredentialName()protected com.google.api.services.androidpublisher.AndroidPublisher.EditsgetEditService()protected com.google.api.services.androidpublisher.AndroidPublisher.InternalappsharingartifactsgetInternalAppSharing()-
Methods inherited from class jenkins.security.MasterToSlaveCallable
checkRoles, getChannelOrFail, getOpenChannelOrFail
-
-
-
-
Field Detail
-
editService
protected com.google.api.services.androidpublisher.AndroidPublisher.Edits editService
-
applicationId
protected final String applicationId
-
editId
protected String editId
-
logger
protected PrintStream logger
-
-
Method Detail
-
call
public final V call() throws UploadException
- Throws:
UploadException
-
execute
protected abstract V execute() throws IOException, InterruptedException, UploadException
-
getEditService
protected final com.google.api.services.androidpublisher.AndroidPublisher.Edits getEditService() throws UploadException- Throws:
UploadException
-
getInternalAppSharing
protected final com.google.api.services.androidpublisher.AndroidPublisher.Internalappsharingartifacts getInternalAppSharing() throws UploadException- Throws:
UploadException
-
createEdit
protected final void createEdit(String applicationId) throws IOException
Creates a new edit, assigning theeditId. Any previous edit ID will be lost.- Throws:
IOException
-
commit
protected void commit() throws IOException- Throws:
IOException
-
getCredentialName
protected String getCredentialName()
- Returns:
- The name of the credential being used.
-
-