UDisks.BlockZRAM

g GObject.GInterface GObject.GInterface UDisks.BlockZRAM UDisks.BlockZRAM GObject.GInterface->UDisks.BlockZRAM

Implementations:
 UDisks.BlockZRAMProxy, UDisks.BlockZRAMSkeleton

Methods

class interface_info ()
class override_properties (klass, property_id_begin)
  call_activate (arg_priority, arg_options, cancellable, callback, *user_data)
  call_activate_finish (res)
  call_activate_labeled (arg_priority, arg_label, arg_options, cancellable, callback, *user_data)
  call_activate_labeled_finish (res)
  call_activate_labeled_sync (arg_priority, arg_label, arg_options, cancellable)
  call_activate_sync (arg_priority, arg_options, cancellable)
  call_deactivate (arg_options, cancellable, callback, *user_data)
  call_deactivate_finish (res)
  call_deactivate_sync (arg_options, cancellable)
  call_refresh (arg_options, cancellable, callback, *user_data)
  call_refresh_finish (res)
  call_refresh_sync (arg_options, cancellable)
  complete_activate (invocation)
  complete_activate_labeled (invocation)
  complete_deactivate (invocation)
  complete_refresh (invocation)

Virtual Methods

  do_handle_activate (invocation, arg_priority, arg_options)
  do_handle_activate_labeled (invocation, arg_priority, arg_label, arg_options)
  do_handle_deactivate (invocation, arg_options)
  do_handle_refresh (invocation, arg_options)

Properties

Name Type Flags Short Description
active bool r/w Active
comp-algorithm str r/w CompAlgorithm
compr-data-size int r/w ComprDataSize
disksize int r/w Disksize
invalid-io int r/w InvalidIo
max-comp-streams int r/w MaxCompStreams
mem-used-total int r/w MemUsedTotal
num-reads int r/w NumReads
num-writes int r/w NumWrites
orig-data-size int r/w OrigDataSize
zero-pages int r/w ZeroPages

Signals

Name Short Description
handle-activate Signal emitted when a remote caller is invoking the Activate() D-Bus method.
handle-activate-labeled Signal emitted when a remote caller is invoking the ActivateLabeled() D-Bus method.
handle-deactivate Signal emitted when a remote caller is invoking the Deactivate() D-Bus method.
handle-refresh Signal emitted when a remote caller is invoking the Refresh() D-Bus method.

Fields

None

Class Details

class UDisks.BlockZRAM
Bases:GObject.GInterface
Structure:UDisks.BlockZRAMIface

Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Block.ZRAM.

New in version 2.3.0.

classmethod interface_info()[source]
Returns:A Gio.DBusInterfaceInfo. Do not free.
Return type:Gio.DBusInterfaceInfo

Gets a machine-readable description of the org.freedesktop.UDisks2.Block.ZRAM D-Bus interface.

New in version 2.3.0.

classmethod override_properties(klass, property_id_begin)[source]
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the UDisks.BlockZRAM interface for a concrete class. The properties are overridden in the order they are defined.

New in version 2.3.0.

call_activate(arg_priority, arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the Activate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.BlockZRAM.call_activate_finish() to get the result of the operation.

See UDisks.BlockZRAM.call_activate_sync() for the synchronous, blocking version of this method.

New in version 2.3.0.

call_activate_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockZRAM.call_activate().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.BlockZRAM.call_activate().

New in version 2.3.0.

call_activate_labeled(arg_priority, arg_label, arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the ActivateLabeled() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.BlockZRAM.call_activate_labeled_finish() to get the result of the operation.

See UDisks.BlockZRAM.call_activate_labeled_sync() for the synchronous, blocking version of this method.

New in version 2.3.0.

call_activate_labeled_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockZRAM.call_activate_labeled().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.BlockZRAM.call_activate_labeled().

New in version 2.3.0.

call_activate_labeled_sync(arg_priority, arg_label, arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ActivateLabeled() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.BlockZRAM.call_activate_labeled() for the asynchronous version of this method.

New in version 2.3.0.

call_activate_sync(arg_priority, arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Activate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.BlockZRAM.call_activate() for the asynchronous version of this method.

New in version 2.3.0.

call_deactivate(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the Deactivate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.BlockZRAM.call_deactivate_finish() to get the result of the operation.

See UDisks.BlockZRAM.call_deactivate_sync() for the synchronous, blocking version of this method.

New in version 2.3.0.

call_deactivate_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockZRAM.call_deactivate().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.BlockZRAM.call_deactivate().

New in version 2.3.0.

call_deactivate_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Deactivate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.BlockZRAM.call_deactivate() for the asynchronous version of this method.

New in version 2.3.0.

call_refresh(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the Refresh() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.BlockZRAM.call_refresh_finish() to get the result of the operation.

See UDisks.BlockZRAM.call_refresh_sync() for the synchronous, blocking version of this method.

New in version 2.3.0.

call_refresh_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.BlockZRAM.call_refresh().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.BlockZRAM.call_refresh().

New in version 2.3.0.

call_refresh_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Refresh() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.BlockZRAM.call_refresh() for the asynchronous version of this method.

New in version 2.3.0.

complete_activate(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Activate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.3.0.

complete_activate_labeled(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ActivateLabeled() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.3.0.

complete_deactivate(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Deactivate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.3.0.

complete_refresh(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Refresh() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.3.0.

do_handle_activate(invocation, arg_priority, arg_options) virtual
Parameters:
Return type:

bool

do_handle_activate_labeled(invocation, arg_priority, arg_label, arg_options) virtual
Parameters:
Return type:

bool

do_handle_deactivate(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_refresh(invocation, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.BlockZRAM.signals.handle_activate(block_z_r_a_m, invocation, arg_priority, arg_options)
Signal Name:

handle-activate

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Activate() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.BlockZRAM.complete_activate() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.3.0.

UDisks.BlockZRAM.signals.handle_activate_labeled(block_z_r_a_m, invocation, arg_priority, arg_label, arg_options)
Signal Name:

handle-activate-labeled

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ActivateLabeled() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.BlockZRAM.complete_activate_labeled() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.3.0.

UDisks.BlockZRAM.signals.handle_deactivate(block_z_r_a_m, invocation, arg_options)
Signal Name:

handle-deactivate

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Deactivate() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.BlockZRAM.complete_deactivate() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.3.0.

UDisks.BlockZRAM.signals.handle_refresh(block_z_r_a_m, invocation, arg_options)
Signal Name:

handle-refresh

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Refresh() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.BlockZRAM.complete_refresh() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.3.0.

Property Details

UDisks.BlockZRAM.props.active
Name:active
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “Active”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.comp_algorithm
Name:comp-algorithm
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property “CompAlgorithm”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.compr_data_size
Name:compr-data-size
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “ComprDataSize”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.disksize
Name:disksize
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “Disksize”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.invalid_io
Name:invalid-io
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “InvalidIo”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.max_comp_streams
Name:max-comp-streams
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “MaxCompStreams”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.mem_used_total
Name:mem-used-total
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “MemUsedTotal”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.num_reads
Name:num-reads
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “NumReads”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.num_writes
Name:num-writes
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “NumWrites”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.orig_data_size
Name:orig-data-size
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “OrigDataSize”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.

UDisks.BlockZRAM.props.zero_pages
Name:zero-pages
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “ZeroPages”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.3.0.