Run Garbage Collector Action

The Run Garbage Collector action runs Garbage Collection to reclaim unused memory.

Action Definition

Name

Run Garbage Collection Action

ID

com.hybris.cockpitng.action.run.gc

Description

Action runs Garbage Collection to manage used memory.

Author

SAP

Action Class Name

com.hybris.cockpitng.actions.gc.RunGCAction

Custom Rendered Class Name

DefaultActionRenderer

For more information, see Action Parameters.

Inputs

Not applicable

Outputs

Not applicable

Action Preview

Configuration

By nature, the Run Garbage Collector action is very similar to the Refresh action. The action runs the Garbage Collector and returns confirmation of successful execution. The success socket may be used by a widget containing this action to forward the triggering event to one of its sockets (for example to a newly created virtual socket of type java.lang.Object), which can be connected to its child widgets (or any other widget) to initiate the process of refreshing.

Sample configuration for a widget making use of this action might be as follows:

backoffice/resources/backoffice-widgets.xml

<widget id="widget_id" widgetDefinitionId="action.containing.widgets.id" slotId="slotId" template="false">
    <virtual-sockets>
        <output id="com.hybris.cockpitng.action.run.gc.success" type="java.lang.Object" visibility="external"/>
    </virtual-sockets>
</widget>

Dependency

Not applicable.