public class ArtifactTransferEvent extends EventObject
| Modifier and Type | Field and Description | 
|---|---|
| static int | REQUEST_GETIndicates GET transfer  (from the repository) | 
| static int | REQUEST_PUTIndicates PUT transfer (to the repository) | 
| static int | TRANSFER_COMPLETEDA transfer is completed. | 
| static int | TRANSFER_ERRORAn error occurred during transfer | 
| static int | TRANSFER_INITIATEDA transfer was attempted, but has not yet commenced. | 
| static int | TRANSFER_PROGRESSA transfer is in progress. | 
| static int | TRANSFER_STARTEDA transfer was started. | 
source| Constructor and Description | 
|---|
| ArtifactTransferEvent(String wagon,
                                          Exception exception,
                                          int requestType,
                                          ArtifactTransferResource artifact) | 
| ArtifactTransferEvent(String wagon,
                                          int eventType,
                                          int requestType,
                                          ArtifactTransferResource artifact) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| byte[] | getDataBuffer() | 
| int | getDataLength() | 
| int | getDataOffset() | 
| int | getEventType() | 
| Exception | getException() | 
| File | getLocalFile() | 
| int | getRequestType()Returns the request type. | 
| ArtifactTransferResource | getResource() | 
| long | getTransferredBytes() | 
| int | hashCode() | 
| void | setDataBuffer(byte[] dataBuffer) | 
| void | setDataLength(int dataLength) | 
| void | setDataOffset(int dataOffset) | 
| void | setEventType(int eventType) | 
| void | setLocalFile(File localFile) | 
| void | setRequestType(int requestType)Sets the request type | 
| void | setTransferredBytes(long transferredBytes) | 
| String | toString() | 
getSourcepublic static final int TRANSFER_INITIATED
public static final int TRANSFER_STARTED
public static final int TRANSFER_COMPLETED
public static final int TRANSFER_PROGRESS
public static final int TRANSFER_ERROR
public static final int REQUEST_GET
public static final int REQUEST_PUT
public ArtifactTransferEvent(String wagon, int eventType, int requestType, ArtifactTransferResource artifact)
public ArtifactTransferEvent(String wagon, Exception exception, int requestType, ArtifactTransferResource artifact)
public ArtifactTransferResource getResource()
public Exception getException()
public int getRequestType()
TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUTpublic void setRequestType(int requestType)
requestType - The requestType to set.
                    The Request type value should be either
                    TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT.IllegalArgumentException - whenpublic int getEventType()
public void setEventType(int eventType)
eventType - The eventType to set.public File getLocalFile()
public void setLocalFile(File localFile)
localFile - The local file to set.public long getTransferredBytes()
public void setTransferredBytes(long transferredBytes)
public byte[] getDataBuffer()
public void setDataBuffer(byte[] dataBuffer)
public int getDataOffset()
public void setDataOffset(int dataOffset)
public int getDataLength()
public void setDataLength(int dataLength)
public String toString()
toString in class EventObjectCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.