Resource pool v1.0.3 DefaultResourceFactory View Source

This module implements simple template of resource factory (ResourceFactory behaviour). It is for testing/debuging purpouse.

Link to this section Summary

Functions

Activate resource before starting to use.

Create simple resource for testing. In real system new resource is created as process using resource metadata.

Do nothing with test resource. Real system will close and dispose the resource.

Passivate resource before going to idle.

Test resource is always valid. Real system has to check health of given resource.

Link to this section Functions

Link to this function

activate(resource_metadata, resource)

View Source

Activate resource before starting to use.

Link to this function

create(resource_metadata)

View Source

Create simple resource for testing. In real system new resource is created as process using resource metadata.

Link to this function

destroy(resource_metadata, resource)

View Source

Do nothing with test resource. Real system will close and dispose the resource.

Link to this function

passivate(resource_metadata, resource)

View Source

Passivate resource before going to idle.

Link to this function

validate(resource_metadata, resource)

View Source

Test resource is always valid. Real system has to check health of given resource.