Skip to main content

com.eruces.teagent.event.FileEvent

The FileEvent class defines a file processing event.

Inheritance

  • Inherits EventObject

Public Member Functions

MemberDescription
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

ParameterDescription
typeThe type of file event to occur.
srcThe 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

ParameterDescription
sizeA 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

ParameterDescription
sizeA long integer representing the total size of a file.