Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
ResourceServiceMatcher Struct Reference

A ServiceMatcher that matches a Service if it can run on a given Resource. More...

#include <service_matcher.h>

Inheritance diagram for ResourceServiceMatcher:
[legend]
Collaboration diagram for ResourceServiceMatcher:
[legend]

Data Fields

ServiceMatcher rsm_base_matcher
 The base matcher. More...
 
DataResourcersm_resource_p
 The Resource to test if a Service can operate upon. More...
 
Handlerrsm_handler_p
 The Handler to access the Resource. More...
 
- Data Fields inherited from ServiceMatcher
RunServiceMatcherCallback sm_match_fn
 Callback function to run against a given Service to see if is a match. More...
 
DestroyServiceMatcherCallback sm_destroy_fn
 Callback to call when destroying a custom ServiceMatcher. More...
 

Additional Inherited Members

- Public Member Functions inherited from ServiceMatcher
ServiceMatcherAllocateServiceMatcher (void)
 Allocate an empty ServiceMatcher. More...
 
ServiceMatcherAllocateResourceServiceMatcher (DataResource *resource_p, Handler *handler_p)
 Allocate a ResourceServiceMatcher. More...
 
ServiceMatcherAllocateOperationNameServiceMatcher (const char *name_s, const char *alias_s)
 Allocate a NameServiceMatcher. More...
 
ServiceMatcherAllocatePluginNameServiceMatcher (const char *plugin_name_s)
 Allocate a PluginNameServiceMatcher. More...
 
ServiceMatcherAllocatePluginOperationNameServiceMatcher (const char *plugin_name_s, const char *service_name_s)
 Allocate a PluginOperationNameServiceMatcher. More...
 
ServiceMatcherAllocateKeywordServiceMatcher (void)
 Allocate a KeywordServiceMatcher. More...
 
GRASSROOTS_SERVICE_MANAGER_LOCAL void InitServiceMatcher (ServiceMatcher *matcher_p, RunServiceMatcherCallback match_fn)
 Initialise a ServiceMatcher. More...
 
bool RunServiceMatcher (ServiceMatcher *matcher_p, Service *service_p)
 Run a ServiceMatcher on a given Service. More...
 
void FreeServiceMatcher (ServiceMatcher *matcher_p)
 Free a ServiceMatcher. More...
 

Detailed Description

A ServiceMatcher that matches a Service if it can run on a given Resource.

Field Documentation

◆ rsm_base_matcher

ServiceMatcher rsm_base_matcher

The base matcher.

◆ rsm_resource_p

DataResource* rsm_resource_p

The Resource to test if a Service can operate upon.

◆ rsm_handler_p

Handler* rsm_handler_p

The Handler to access the Resource.


The documentation for this struct was generated from the following file: