Class that represents a processing element. More...
#include <SPL/Runtime/ProcessingElement/ProcessingElement.h>
Classes |
|
| class | OutputConnection |
Public Member Functions |
|
| virtual bool | hasDataDirectory () const =0 |
| Determines if a data directory was specified at compile or submission time. More... |
|
| virtual const std::string & | getDataDirectory () const =0 |
| Returns the path to the data directory of the SPL application. More... |
|
| virtual const std::string & | getCheckpointDirectory () const =0 |
| Returns the path to the checkpointing directory of the PE. More... |
|
| virtual const std::string & | getApplicationScope () const =0 |
| Returns the application scope for the job the PE is running in. More... |
|
| virtual const std::string & | getApplicationDirectory () const =0 |
| Returns the path to the SPL application directory. More... |
|
| virtual const std::string & | getOutputDirectory () const =0 |
| Returns the path to the SPL application output directory. More... |
|
| virtual std::string | getToolkitDirectory () const =0 |
| Returns the absolute path of the toolkit containing the operator for this PE. More... |
|
| virtual std::string | getToolkitDirectory (const std::string &toolkitName) const =0 |
| Returns the absolute path of the specified toolkit. More... |
|
| virtual uint64_t | getPEId () const =0 |
| Returns the runtime identifier for this PE. More... |
|
| virtual uint64_t | getJobId () const =0 |
| Returns the runtime identifier for the job containing this PE. More... |
|
| virtual uint32_t | getRelaunchCount () const =0 |
| Returns the number of times this PE has been relaunched. For the first. execution, the value will be 0. More... |
|
| virtual uint32_t | getNumberOfInputPorts () const =0 |
| Returns the number of inputs for this PE. More... |
|
| virtual uint32_t | getNumberOfOutputPorts () const =0 |
| Returns the number of outputs for this PE. More... |
|
| virtual bool | isStandalone () const =0 |
| Checks if the PE is running in standalone mode. More... |
|
| virtual bool | isOptimized () const =0 |
| Checks if the PE is running under optimized mode. More... |
|
| virtual bool | isInFusedMode () const =0 |
| Checks if the PE is running under fused mode. More... |
|
| virtual bool | isInDebugMode () const =0 |
| Checks if the PE is running under debug mode. More... |
|
| virtual bool | getShutdownRequested () const =0 |
| Checks if shutdown was requested. More... |
|
| virtual void | blockUntilShutdownRequest () const =0 |
| Blocks until shutdown is requested. More... |
|
| virtual bool | blockUntilShutdownRequest (const timespec &absTime) const =0 |
| Blocks until shutdown is requested. More... |
|
| virtual bool | blockUntilShutdownRequest (const double timeInSeconds) const =0 |
| Blocks until shutdown is requested. More... |
|
| virtual PEMetrics & | getMetrics ()=0 |
| Returns the PE metrics. More... |
|
| virtual std::string | getInstanceID () const =0 |
| Returns the instance ID for the current processing element. More... |
|
| virtual bool | getOutputPortConnections (uint32_t port, std::vector< OutputConnection > &connections) const =0 |
| Returns the connection and congestion information for a PE output port. More... |
|
| virtual int | getOutputPortCongestionFactor (uint32_t port) const =0 |
| Returns the congestion factor for a PE output port. More... |
|
| virtual JavaVM * | getJavaVM () const =0 |
| Returns the Java virtual machine. More... |
|
| virtual ControlPlaneConnectorPtr | getControlPlaneConnector () const =0 |
| Returns a connector to the control plane of the current job. More... |
|
| virtual std::string | getDomainID () const =0 |
| Returns the domain ID for the current processing element. More... |
|
| virtual std::string | getApplicationName () const =0 |
| Returns the name of the SPL application the PE is running. More... |
|
| virtual std::string | getJobGroup () const =0 |
| Returns the name of the job group for the job the processing element is running in. More... |
|
| virtual std::string | getJobName () const =0 |
| Returns the name of the job the processing element is running in. More... |
|
| virtual int32_t | getApplicationConfiguration (std::string const &configName, std::map< std::string, std::string > &properties)=0 |
Returns the application configuration for the given name. More... |
|
| virtual std::string | getApplicationConfigurationProperty (std::string const &configName, std::string const &propertyName, int32_t *errorCode=nullptr)=0 |
Returns the value associated with the given configuration property propertyName from the configuration identified by configName. More... |
|
| virtual int | getOperatorRelativeCost (uint32_t index) const =0 |
Static Public Member Functions |
|
| static ProcessingElement & | pe () |
| Returns the current PE. More... |
|
Class that represents a processing element.
|
pure virtual |
Determines if a data directory was specified at compile or submission time.
|
pure virtual |
Returns the path to the data directory of the SPL application.
|
pure virtual |
Returns the path to the checkpointing directory of the PE.
|
pure virtual |
Returns the application scope for the job the PE is running in.
|
pure virtual |
Returns the path to the SPL application directory.
|
pure virtual |
Returns the path to the SPL application output directory.
|
pure virtual |
Returns the absolute path of the toolkit containing the operator for this PE.
|
pure virtual |
Returns the absolute path of the specified toolkit.
| toolkitName | name of the toolkit to return a path to |
|
pure virtual |
Returns the runtime identifier for this PE.
|
pure virtual |
Returns the runtime identifier for the job containing this PE.
|
pure virtual |
Returns the number of times this PE has been relaunched. For the first. execution, the value will be 0.
|
pure virtual |
Returns the number of inputs for this PE.
|
pure virtual |
Returns the number of outputs for this PE.
|
pure virtual |
Checks if the PE is running in standalone mode.
|
pure virtual |
Checks if the PE is running under optimized mode.
|
pure virtual |
Checks if the PE is running under fused mode.
|
pure virtual |
Checks if the PE is running under debug mode.
|
pure virtual |
Checks if shutdown was requested.
|
pure virtual |
Blocks until shutdown is requested.
|
pure virtual |
Blocks until shutdown is requested.
| absTime | absolute time to wait until if shutdown is not requested |
|
pure virtual |
Blocks until shutdown is requested.
| timeInSeconds | maximum wait time in seconds (could be fractional) if shutdown is not requested |
|
pure virtual |
Returns the PE metrics.
|
static |
Returns the current PE.
|
pure virtual |
Returns the instance ID for the current processing element.
|
pure virtual |
Returns the connection and congestion information for a PE output port.
| port | the output port number |
| connections | output connection information |
|
pure virtual |
Returns the congestion factor for a PE output port.
| port | the output port number |
|
pure virtual |
Returns the Java virtual machine.
|
pure virtual |
Returns a connector to the control plane of the current job.
|
pure virtual |
Returns the domain ID for the current processing element.
|
pure virtual |
Returns the name of the SPL application the PE is running.
|
pure virtual |
Returns the name of the job group for the job the processing element is running in.
|
pure virtual |
Returns the name of the job the processing element is running in.
|
pure virtual |
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.
| configName | Application configuration name. | |
| [out] | properties | Output map where the configuration properties are to be inserted. |
|
pure virtual |
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.
| configName | Application configuration name. | |
| propertyName | Configuration property name. | |
| [out] | errorCode | Pointer to an output error code value. If the pointer is not null, the value is set to 0 for success, -1 if the configuration could not be found, -2 if the configuration property could not be found. |
propertyName or if the configuration does not exist.
|
pure virtual |
Return the relative operator metric for the current operator