com.eruces.teagent.event.FileEvent
The FileEvent class defines a file processing event.
Inheritance
- Inherits EventObject
Public Member Functions
| Member | Description |
|---|---|
FileEvent(FileEventType type, Object src) | The FileEvent constructor specifies the type of file event and the source object from which the event is sent out. |
FileEventType getType() | The getType method gets the type of file event. |
long getProcessedSize() | The getProcessedSize method gets the size of the file after it has been processed. |
void setProcessedSize(long size) | The setProcessedSize method sets the size of the processed file. |
long getTotalSize() | The getTotalSize method gets the total size of the file. |
void setTotalSize(long size) | The setTotalSize method sets the total size of a file. |
Member Function Documentation
FileEvent(FileEventType type, Object src)
The FileEvent constructor specifies the type of file event and the source object from which the event is sent out.
Parameters
| Parameter | Description |
|---|---|
type | The type of file event to occur. |
src | The source from which the event originates. |
FileEventType getType()
The getType method gets the type of file event.
Returns: Returns the file event type.
long getProcessedSize()
The getProcessedSize method gets the size of the file after it has been processed.
Returns: Returns a long integer representing the size of the processed data.
void setProcessedSize(long size)
The setProcessedSize method sets the size of the processed file.
Parameters
| Parameter | Description |
|---|---|
size | A long integer representing the size of a processed file. |
long getTotalSize()
The getTotalSize method gets the total size of the file.
Returns: Returns a long integer representing the total size of the file.
void setTotalSize(long size)
The setTotalSize method sets the total size of a file.
Parameters
| Parameter | Description |
|---|---|
size | A long integer representing the total size of a file. |