public class FileTrigger extends Trigger
| Modifier and Type | Class and Description |
|---|---|
static class |
FileTrigger.FileStatus
FileStatus represents the status of the destination file(i.e. new,overwritten,appended,renamed)
|
Trigger.Protocol, Trigger.Status, Trigger.TRIGGER_TYPE| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Long |
fileSize
fileSize expected size of the source file
|
protected FileTrigger.FileStatus |
fileStatus
FileStatus represents the status of the destination file(i.e. new,overwritten,appended,renamed)
|
protected java.lang.Long |
fileTimestamp
fileTimestamp the lastModified time of the incoming file
|
context, errorMessage, folder, host, sessionId, sourceFile, status, triggerTimestamp| Constructor and Description |
|---|
FileTrigger() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getFileSize()
gets the expected size of the file
|
FileTrigger.FileStatus |
getFileStatus()
Gets the status of the destination file (i.e. new,overwritten,appended,renamed)
|
java.lang.Long |
getFileTimestamp()
gets the lastModified time of the incoming file
|
int |
hashCode() |
void |
setFileSize(java.lang.Long fileSize)
sets the expected filesize
|
void |
setFileStatus(FileTrigger.FileStatus fileStatus)
Sets the status of the destination file(i.e. new,overwritten,appended,renamed)
|
void |
setFileTimestamp(java.lang.Long fileTimestamp)
sets the lastModified time of the incoming file
|
java.lang.String |
toString()
Convert trigger object to its string representation
|
clone, getActionId, getContext, getErrorMessage, getExecutionStatus, getFolder, getHost, getScheduledType, getSessionId, getSourceFile, getStatus, getStorageLocation, getTriggerId, getTriggerTimestamp, getType, getValidationFailedMessage, setActionId, setContext, setErrorMessage, setExecutionStatus, setFolder, setHost, setScheduledType, setSessionId, setSourceFile, setStatus, setStorageLocation, setTriggerId, setTriggerTimestamp, setType, setValidationFailedMessage, toMapprotected java.lang.Long fileSize
protected java.lang.Long fileTimestamp
protected FileTrigger.FileStatus fileStatus
public java.lang.String toString()
Triggerpublic java.lang.Long getFileSize()
public void setFileSize(java.lang.Long fileSize)
fileSize - the expected size of the filepublic java.lang.Long getFileTimestamp()
public void setFileTimestamp(java.lang.Long fileTimestamp)
fileTimestamp - the lastModified time of the incoming filepublic FileTrigger.FileStatus getFileStatus()
public void setFileStatus(FileTrigger.FileStatus fileStatus)
fileStatus - new,overwritten,appended or renamed