public class CopyStatusImplementation extends java.lang.Object implements CopyStatus
Modifier and Type | Field and Description |
---|---|
private long |
bytesCopied |
private long |
bytesToCopy |
private Copy |
copy |
private java.lang.Exception |
exception |
private boolean |
isDone |
private boolean |
isRunning |
private java.lang.String |
state |
Constructor and Description |
---|
CopyStatusImplementation(Copy copy,
java.lang.String state,
boolean isRunning,
boolean isDone,
long bytesToCopy,
long bytesCopied,
java.lang.Exception exception) |
Modifier and Type | Method and Description |
---|---|
long |
bytesCopied()
Get the number of bytes that have been copied.
|
long |
bytesToCopy()
Get the number of bytes that need to be copied for the entire copy operation.
|
Copy |
getCopy()
Get the Copy for which this CopyStatus was created.
|
java.lang.Exception |
getException()
Get the exception produced by the Copy or while retrieving the status.
|
java.lang.String |
getState()
Get the state of the Copy operation.
|
boolean |
hasException()
Has the Copy or status retrieval produced a exception ?
|
boolean |
isDone()
Is the Copy done?
|
boolean |
isRunning()
Is the Copy still running?
|
java.lang.String |
toString() |
private final Copy copy
private final java.lang.String state
private final java.lang.Exception exception
private final boolean isRunning
private final boolean isDone
private final long bytesToCopy
private final long bytesCopied
public CopyStatusImplementation(Copy copy, java.lang.String state, boolean isRunning, boolean isDone, long bytesToCopy, long bytesCopied, java.lang.Exception exception)
public Copy getCopy()
CopyStatus
getCopy
in interface CopyStatus
public java.lang.String getState()
CopyStatus
getState
in interface CopyStatus
public java.lang.Exception getException()
CopyStatus
getException
in interface CopyStatus
public boolean isRunning()
CopyStatus
isRunning
in interface CopyStatus
public boolean isDone()
CopyStatus
isDone
in interface CopyStatus
public boolean hasException()
CopyStatus
hasException
in interface CopyStatus
public long bytesToCopy()
CopyStatus
bytesToCopy
in interface CopyStatus
public long bytesCopied()
CopyStatus
bytesCopied
in interface CopyStatus
public java.lang.String toString()
toString
in class java.lang.Object