Package org.apache.wayang.profiler.log
Class DynamicLoadProfileEstimators
- java.lang.Object
-
- org.apache.wayang.profiler.log.DynamicLoadProfileEstimators
-
public class DynamicLoadProfileEstimators extends java.lang.Object
Utility to createDynamicLoadProfileEstimator
s.
-
-
Constructor Summary
Constructors Constructor Description DynamicLoadProfileEstimators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicLoadProfileEstimator
createEstimatorFor(LoadProfileEstimator loadProfileEstimator, Configuration configuration, OptimizationSpace optimizationSpace)
Creates aDynamicLoadProfileEstimator
according to the givenLoadProfileEstimator
and its nestedLoadProfileEstimator
s.static DynamicLoadProfileEstimator
createFromTemplate(java.lang.String configKey, java.lang.String specification, OptimizationSpace optimizationSpace)
Creates a new instance from a templateString
.static DynamicLoadEstimator
wrap(LoadEstimator loadEstimator)
Exposes aLoadEstimator
forExecutionOperator
s as aDynamicLoadEstimator
with the caveat that theExecutionOperator
will not be available in the estimation process.static DynamicLoadProfileEstimator
wrap(LoadProfileEstimator loadProfileEstimator)
-
-
-
Method Detail
-
createEstimatorFor
public static DynamicLoadProfileEstimator createEstimatorFor(LoadProfileEstimator loadProfileEstimator, Configuration configuration, OptimizationSpace optimizationSpace)
Creates aDynamicLoadProfileEstimator
according to the givenLoadProfileEstimator
and its nestedLoadProfileEstimator
s.- Parameters:
loadProfileEstimator
- that should be turned into aDynamicLoadProfileEstimator
configuration
- provides templates for theDynamicLoadProfileEstimator
soptimizationSpace
- providesVariable
s for theDynamicLoadProfileEstimator
s- Returns:
- the
DynamicLoadProfileEstimator
-
wrap
public static DynamicLoadProfileEstimator wrap(LoadProfileEstimator loadProfileEstimator)
- Parameters:
loadProfileEstimator
- theLoadProfileEstimator
ornull
- Returns:
- the
DynamicLoadProfileEstimator
ornull
ifloadProfileEstimator
isnull
-
wrap
public static DynamicLoadEstimator wrap(LoadEstimator loadEstimator)
Exposes aLoadEstimator
forExecutionOperator
s as aDynamicLoadEstimator
with the caveat that theExecutionOperator
will not be available in the estimation process.- Parameters:
loadEstimator
- theLoadEstimator
ornull
- Returns:
- the
DynamicLoadEstimator
ornull
ifloadEstimator
isnull
-
createFromTemplate
public static DynamicLoadProfileEstimator createFromTemplate(java.lang.String configKey, java.lang.String specification, OptimizationSpace optimizationSpace)
Creates a new instance from a templateString
. Valid specifications are as follows:{"type":<*org.apache.wayang.core.util.mathex.mathex*>, "cpu":<mathematical expression>, "ram":<mathematical expression>, "disk":<mathematical expression>, "network":<mathematical expression>, "in":<#inputs>, "out":<#outputs>, "overhead":<overhead in milliseconds>, "ru":<resource utilization mathematical expression> }
The JUEL expressions accept as parametersin0
,in1
a.s.o. for the input cardinalities andout0
,out1
a.s.o. for the output cardinalities.- Parameters:
configKey
- theConfiguration
from that thespec
was retrieved or elsenull
specification
- a specification that adheres to above formatoptimizationSpace
- maintainsVariable
s imposed by thespec
- Returns:
- the new instance
-
-