public class UploaderToPod
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
static long |
MAX_FILE_TRANSFER_TRY_COUNT |
static long |
SLEEP_INTERVAL_BETWEEN_TRANSFER_ATTEMPTS |
Constructor and Description |
---|
UploaderToPod(java.lang.String namespace,
java.lang.String podName,
java.lang.String jobPackageFile,
java.lang.String podFile) |
Modifier and Type | Method and Description |
---|---|
void |
cancelTransfer() |
java.lang.String |
getPodName() |
boolean |
packageTransferred()
return true if the file is transferred successfully
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final long MAX_FILE_TRANSFER_TRY_COUNT
public static final long SLEEP_INTERVAL_BETWEEN_TRANSFER_ATTEMPTS
public UploaderToPod(java.lang.String namespace, java.lang.String podName, java.lang.String jobPackageFile, java.lang.String podFile)
public java.lang.String getPodName()
public boolean packageTransferred()
public void cancelTransfer()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread