ResourceList Event
Fires once for each resource returned when listing resources.
Syntax
public event OnResourceListHandler OnResourceList; public delegate void OnResourceListHandler(object sender, HadoopdfsResourceListEventArgs e); public class HadoopdfsResourceListEventArgs : EventArgs { public string Name { get; } public string Path { get; } public int ResourceType { get; } public long ModifiedTime { get; } public long AccessTime { get; } public long Size { get; } public string Permission { get; } public string Owner { get; } public string Group { get; } public int Replication { get; } }
Public Event OnResourceList As OnResourceListHandler Public Delegate Sub OnResourceListHandler(sender As Object, e As HadoopdfsResourceListEventArgs) Public Class HadoopdfsResourceListEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property Path As String Public ReadOnly Property ResourceType As Integer Public ReadOnly Property ModifiedTime As Long Public ReadOnly Property AccessTime As Long Public ReadOnly Property Size As Long Public ReadOnly Property Permission As String Public ReadOnly Property Owner As String Public ReadOnly Property Group As String Public ReadOnly Property Replication As Integer End Class
Remarks
This event fires once for each resource returned when ListResources or GetResourceInfo 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.