Class that represents a processing element. More...

#include <SPL/Runtime/ProcessingElement/ProcessingElement.h>

Detailed Description

Class that represents a processing element.

Member Function Documentation

◆ hasDataDirectory()

Determines if a data directory was specified at compile or submission time.

Returns
Returns true if a data directory was specified, otherwise false.

◆ getDataDirectory()

Returns the path to the data directory of the SPL application.

Returns
working directory of the PE

◆ getCheckpointDirectory()

Returns the path to the checkpointing directory of the PE.

Returns
checkpointing directory of the PE
Deprecated:
The new checkpoint API no longer uses this API or the related –checkpoint-directory compiler option.

◆ getApplicationScope()

Returns the application scope for the job the PE is running in.

Returns
application scope

◆ getApplicationDirectory()

Returns the path to the SPL application directory.

Returns
application directory

◆ getOutputDirectory()

Returns the path to the SPL application output directory.

Returns
application output directory

◆ getToolkitDirectory() [1/2]

Returns the absolute path of the toolkit containing the operator for this PE.

Returns
returns the toolkit directory

◆ getToolkitDirectory() [2/2]

Returns the absolute path of the specified toolkit.

Parameters
Returns
returns the toolkit directory

◆ getPEId()

Returns the runtime identifier for this PE.

Returns
runtime identifier for this PE

◆ getJobId()

Returns the runtime identifier for the job containing this PE.

Returns
runtime identifier for the job containing this PE

◆ getRelaunchCount()

Returns the number of times this PE has been relaunched. For the first. execution, the value will be 0.

Returns
the relaunch count

◆ getNumberOfInputPorts()

Returns the number of inputs for this PE.

Returns
the number of inputs for this PE

◆ getNumberOfOutputPorts()

Returns the number of outputs for this PE.

Returns
the number of outputs for this PE

◆ isStandalone()

Checks if the PE is running in standalone mode.

Returns
true if running in standalone mode, false otherwise

◆ isOptimized()

Checks if the PE is running under optimized mode.

Returns
true if running in optimized mode, false otherwise

◆ isInFusedMode()

Checks if the PE is running under fused mode.

Returns
true if running in fused mode, false otherwise

◆ isInDebugMode()

Checks if the PE is running under debug mode.

Returns
true if running in debug mode, false otherwise

◆ getShutdownRequested()

Checks if shutdown was requested.

Returns
true if shutdown was requested, false otherwise

◆ blockUntilShutdownRequest() [1/3]

Blocks until shutdown is requested.

Returns
void

◆ blockUntilShutdownRequest() [2/3]

Blocks until shutdown is requested.

Parameters
Returns
true if unblocked due to the shutdown request, false otherwise

◆ blockUntilShutdownRequest() [3/3]

Blocks until shutdown is requested.

Parameters
Returns
true if unblocked due to the shutdown request, false otherwise

◆ getMetrics()

Returns the PE metrics.

Returns
PE metrics

◆ pe()

Returns the current PE.

Returns
the ProcessingElement for the current process

◆ getInstanceID()

Returns the instance ID for the current processing element.

Returns
the instance ID for the current processing element (username if running standalone)

◆ getOutputPortConnections()

Returns the connection and congestion information for a PE output port.

Parameters
Returns
'true' for success, 'false' for invalid port number

◆ getOutputPortCongestionFactor()

Returns the congestion factor for a PE output port.

Parameters
Returns
-1 for invalid port, or 0..100 for congestion factor

◆ getJavaVM()

Returns the Java virtual machine.

Returns
NULL if no JVM, or the pointer to the created JVM

◆ getControlPlaneConnector()

Returns a connector to the control plane of the current job.

Returns
shared pointer to the connector with the Job Control Plane.

◆ getDomainID()

Returns the domain ID for the current processing element.

Returns
the domain ID for the current processing element (username if running standalone)

◆ getApplicationName()

Returns the name of the SPL application the PE is running.

Returns
application name
Since
InfoSphere® Streams Version 4.1

◆ getJobGroup()

Returns the name of the job group for the job the processing element is running in.

Returns
job group name
Since
InfoSphere® Streams Version 4.1

◆ getJobName()

Returns the name of the job the processing element is running in.

Returns
name for the job the processing element is running in
Since
InfoSphere® Streams Version 4.0.1

◆ getApplicationConfiguration()

Returns the application configuration for the given name.

The application configuration is a set of properties where each key and its value in the property set is a string. This method copies all the properties from the specified configuration into the properties output map.

Parameters
Returns
0 if the configuration specified by name was found, otherwise -1.
Since
IBM Streams Version 4.2.0.

◆ getApplicationConfigurationProperty()

Returns the value associated with the given configuration property propertyName from the configuration identified by configName.

An empty string is returned if there is no value associated with the propertyName, or if the configuration does not exist.

Parameters
Returns
The value associated with the property name or an empty string if there is no value associated with the propertyName or if the configuration does not exist.
Since
IBM Streams Version 4.2.0.

◆ getOperatorRelativeCost()

Return the relative operator metric for the current operator

Returns
0..100 for relative operator metric
Since
IBM Streams Version 4.2.3.0.

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