Class: OsCtl::Lib::Zfs::ZpoolTransactionGroups::TransactionGroup
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Lib::Zfs::ZpoolTransactionGroups::TransactionGroup
- Defined in:
- lib/libosctl/zfs/zpool_transaction_groups.rb
Instance Attribute Summary collapse
-
#birth_ns ⇒ Integer
readonly
Time of birth in ns since boot.
-
#birth_time ⇒ Time
readonly
Birth time.
-
#ndirty ⇒ Integer
readonly
Number of dirty bytes.
-
#nread ⇒ Integer
readonly
Number of bytes read.
-
#nwritten ⇒ Integer
readonly
Number of bytes written.
-
#otime_ns ⇒ Integer
readonly
Time for which the txg was open in ns.
-
#pool ⇒ String
readonly
Pool name.
-
#qtime_ns ⇒ Integer
readonly
Time for which the txg was quiescesing in ns.
-
#reads ⇒ Integer
readonly
Number of read operations.
-
#state ⇒ Symbol
readonly
Transaction state.
-
#stime_ns ⇒ Integer
readonly
Time for which the txg was syncing in ns.
-
#txg ⇒ Integer
readonly
Transaction group name.
-
#writes ⇒ Integer
readonly
Number of write operations.
-
#wtime_ns ⇒ Integer
readonly
Time for which the txg was waiting for sync in ns.
Instance Method Summary collapse
Instance Attribute Details
#birth_ns ⇒ Integer (readonly)
Returns Time of birth in ns since boot.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#birth_time ⇒ Time (readonly)
Returns Birth time.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#ndirty ⇒ Integer (readonly)
Returns Number of dirty bytes.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#nread ⇒ Integer (readonly)
Returns Number of bytes read.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#nwritten ⇒ Integer (readonly)
Returns Number of bytes written.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#otime_ns ⇒ Integer (readonly)
Returns Time for which the txg was open in ns.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#pool ⇒ String (readonly)
Returns Pool name.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#qtime_ns ⇒ Integer (readonly)
Returns Time for which the txg was quiescesing in ns.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#reads ⇒ Integer (readonly)
Returns Number of read operations.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#state ⇒ Symbol (readonly)
Returns Transaction state.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#stime_ns ⇒ Integer (readonly)
Returns Time for which the txg was syncing in ns.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#txg ⇒ Integer (readonly)
Returns Transaction group name.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#writes ⇒ Integer (readonly)
Returns Number of write operations.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
#wtime_ns ⇒ Integer (readonly)
Returns Time for which the txg was waiting for sync in ns.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44 TransactionGroup = Struct.new( :pool, :txg, :birth_time, :birth_ns, :state, :ndirty, :nread, :nwritten, :reads, :writes, :otime_ns, :qtime_ns, :wtime_ns, :stime_ns, keyword_init: true ) do def open? state == :open end def committed? state == :committed end end |
Instance Method Details
#committed? ⇒ Boolean
65 66 67 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 65 def committed? state == :committed end |
#open? ⇒ Boolean
61 62 63 |
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 61 def open? state == :open end |