on_resource_list Event
Fires once for each resource returned when listing resources.
Syntax
class HadoopDFSResourceListEventParams(object): @property def name() -> str: ... @property def path() -> str: ... @property def resource_type() -> int: ... @property def modified_time() -> int: ... @property def access_time() -> int: ... @property def size() -> int: ... @property def permission() -> str: ... @property def owner() -> str: ... @property def group() -> str: ... @property def replication() -> int: ... # In class HadoopDFS: @property def on_resource_list() -> Callable[[HadoopDFSResourceListEventParams], None]: ... @on_resource_list.setter def on_resource_list(event_hook: Callable[[HadoopDFSResourceListEventParams], None]) -> None: ...
Remarks
This event fires once for each resource returned when list_resources or get_resource_info is called.
Name is the name of the resource.
Path is the full path of the resource.
ResourceType reflects the resource's type. Possible values are:
0 (hrtFile) | A file. |
1 (hrtDirectory) | A directory. |
2 (hrtSymLink) | A symlink. |
ModifiedTime and AccessTime reflect the resource's last modified and last access times, in milliseconds relative to the Unix epoch.
Size reflects the size of the file, in bytes. Always 0 for directories.
Permission reflects the resource's permission bits, represented as an octal string (e.g., 755).
Owner is the name of the resource's owner.
Group is the name of the resource's group.
Replication reflects the file's replication factor. Always 0 for directories.