gr.uoa.di.madgik.execution.plan
Class PlanConfig

java.lang.Object
  extended by gr.uoa.di.madgik.execution.plan.PlanConfig
All Implemented Interfaces:
Serializable

public class PlanConfig
extends Object
implements Serializable

This class acts as a configuration placeholder for configuration parameters applicable to a single ExecutionPlan and its execution behavior.

Author:
gpapanikos
See Also:
Serialized Form

Nested Class Summary
static class PlanConfig.ConnectionMode
          The type of connection mode the remote connections should have.
 
Field Summary
 boolean ChokePerformanceReporting
          Whether performance reporting events should be choked.
 boolean ChokeProgressReporting
          Whether progress reporting events should be choked.
 int ConcurrentActionsPerBoundary
          The Concurrent actions per boundary.
 long ConnectionCallbackTimeout
          The Connection callback timeout.
static int DefaultConcurrentActionsPerBoundary
          The default restriction number for the action elements.
static long DefaultConnectionCallbackTimeout
          The default timeout to use when in PlanConfig.ConnectionMode.Callback.
static PlanConfig.ConnectionMode DefaultModeOfConnection
          The default connection mode.
static int DefaultPassBy
          The default number of times a plan can be passed by without execution.
static float DefaultUtilization
          The default utilization percentage of each execution node.
 PlanConfig.ConnectionMode ModeOfConnection
          The Mode of connection.
 int PassedBy
          The times a plan can be passed by in a queue.
 List<IPlanElement.PlanElementType> RestrictActionTypes
          The Restrict action types.
 float Utiliaztion
          The utilization percentage of each execution node.
 
Constructor Summary
PlanConfig()
          Instantiates a new plan config.
PlanConfig(String XML)
          Instantiates a new plan config.
 
Method Summary
 void FromXML(Node XML)
          Deserializes the provided serialization as created by ToXML() and populates this instance.
 void FromXML(String XML)
          Deserializes the provided serialization as created by ToXML() and populates this instance.
 String ToXML()
          Serializes the configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultConcurrentActionsPerBoundary

public static final int DefaultConcurrentActionsPerBoundary
The default restriction number for the action elements. Default value is no restriction.

See Also:
Constant Field Values

DefaultUtilization

public static final float DefaultUtilization
The default utilization percentage of each execution node. Default value is maximum.

See Also:
Constant Field Values

DefaultPassBy

public static final int DefaultPassBy
The default number of times a plan can be passed by without execution. Default value 0.

See Also:
Constant Field Values

DefaultModeOfConnection

public static final PlanConfig.ConnectionMode DefaultModeOfConnection
The default connection mode. Currently set to PlanConfig.ConnectionMode.KeepAlive


DefaultConnectionCallbackTimeout

public static final long DefaultConnectionCallbackTimeout
The default timeout to use when in PlanConfig.ConnectionMode.Callback. If after the specified period in milliseconds no connection is made back, the connection is considered inactive. Currently set to 1 hour.

See Also:
Constant Field Values

ConcurrentActionsPerBoundary

public int ConcurrentActionsPerBoundary
The Concurrent actions per boundary.


Utiliaztion

public float Utiliaztion
The utilization percentage of each execution node.


PassedBy

public int PassedBy
The times a plan can be passed by in a queue.


RestrictActionTypes

public List<IPlanElement.PlanElementType> RestrictActionTypes
The Restrict action types.


ModeOfConnection

public PlanConfig.ConnectionMode ModeOfConnection
The Mode of connection.


ConnectionCallbackTimeout

public long ConnectionCallbackTimeout
The Connection callback timeout.


ChokeProgressReporting

public boolean ChokeProgressReporting
Whether progress reporting events should be choked. By default this value is set to false


ChokePerformanceReporting

public boolean ChokePerformanceReporting
Whether performance reporting events should be choked. By default this value is set to false

Constructor Detail

PlanConfig

public PlanConfig()
Instantiates a new plan config.


PlanConfig

public PlanConfig(String XML)
           throws ExecutionSerializationException
Instantiates a new plan config.

Parameters:
XML - the xML serialization as retrieved by the ToXML()
Throws:
ExecutionSerializationException - A serialization error occurred
Method Detail

ToXML

public String ToXML()
             throws ExecutionSerializationException
Serializes the configuration

Returns:
the serialization
Throws:
ExecutionSerializationException - a serialization error occurred

FromXML

public void FromXML(String XML)
             throws ExecutionSerializationException
Deserializes the provided serialization as created by ToXML() and populates this instance.

Parameters:
XML - the xML serialization
Throws:
ExecutionSerializationException - a serialization error occurred

FromXML

public void FromXML(Node XML)
             throws ExecutionSerializationException
Deserializes the provided serialization as created by ToXML() and populates this instance.

Parameters:
XML - the xML serialization
Throws:
ExecutionSerializationException - a serialization error occurred


Copyright © 2013. All Rights Reserved.