Transformer Pipeline Module API Reference (JavaScript)  8.0.2.290852-a608fcd3
Autopub Module: Pipeline Functions

Detailed Description

The autopub module if loaded exposes some methods to pipelines to enable control of symbol publishing.

Note
The methods in this package are only available if the autopub module is loaded.

Functions

 autopub.enableSymbol (var symbolname, var id)
 Enable publishing for a symbol. More...
 
 autopub.disableSymbol (var symbolname, var id)
 Disable publishing for a symbol. More...
 
 autopub.handleUdate (var dsdata, var id)
 Pass an update directly to the autopub module. More...
 
 autopub.disableGroup (var id)
 Disable publishing for a whole autopub group. More...
 
 autopub.enableGroup (var id)
 Enable publishing for a whole autopub group. More...
 

Function Documentation

autopub.disableGroup ( var  id)

Disable publishing for a whole autopub group.

Parameters
id- The id of the autopub group to disable
Return values
0- Success
-1- Unknown group
autopub.disableSymbol ( var  symbolname,
var  id 
)

Disable publishing for a symbol.

Parameters
symbolname- The name of the symbol to disable
id(optional) - The id of the autopub group to disable publishing of this symbol on. If not provided the symbol will not be published on all matching groups.
Return values
0- Always
Note
The supplied symbolname must exist in the autopub configuration file.

No further updates will be published for the named symbol to the peers listed in the specified group (or all matching groups).

autopub.enableGroup ( var  id)

Enable publishing for a whole autopub group.

Parameters
id- The id of the autopub group to enable
Return values
0- Success
-1- Unknown group
autopub.enableSymbol ( var  symbolname,
var  id 
)

Enable publishing for a symbol.

Parameters
symbolname- The name of the symbol to enable
id(optional) - The id of the autopub group to enable publishing of this symbol on. If not provided the symbol will be published on all matching groups.
Return values
0- Always
Note
The named symbol must match a pattern or symbol defined within the autopub configuration file.

All subsequent updates for /symbolname/ will be published to the peers listed in the specified group (or all matching groups)

autopub.handleUdate ( var  dsdata,
var  id 
)

Pass an update directly to the autopub module.

Parameters
dsdata- The update to pass to the autopub group
id- The id of the autopub group to pass the update to
Return values
0- always
Note
If a group matching the id does not exist, the update will not be passed to any autopub group.

Generated on Wed Jul 31 2024 18:00:29 for Transformer Pipeline Module API Reference (JavaScript)