Apache REEF
0.15.0
Retainable Evaluator Execution Framework
|
Used to create Communication Groups for Group Communication Operators. More...
Inherited by Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
Public Member Functions | |
ICommunicationGroupDriver | NewCommunicationGroup (string groupName, int numTasks) |
Create a new CommunicationGroup with the given name and number of tasks/operators. More... | |
void | RemoveCommunicationGroup (string groupName) |
remove a communication group Throw ArgumentException if the group does not exist More... | |
IConfiguration | GetContextConfiguration () |
Generates context configuration with a unique identifier. More... | |
IConfiguration | GetServiceConfiguration () |
Get the service configuration required for running Group Communication on Reef tasks. More... | |
bool | IsMasterTaskContext (IActiveContext activeContext) |
Checks whether this active context can be used to run the Master Task. More... | |
bool | IsMasterContextConfiguration (IConfiguration contextConfiguration) |
Checks whether this context configuration is used to configure the Master Task. More... | |
int | GetContextNum (IActiveContext activeContext) |
Gets the context number associated with the Active Context id. More... | |
IConfiguration | GetGroupCommTaskConfiguration (string taskId) |
Get the configuration for a particular task. More... | |
Properties | |
string | MasterTaskId [get] |
Returns the identifier for the master task More... | |
ICommunicationGroupDriver | DefaultGroup [get] |
Used to create Communication Groups for Group Communication Operators.
Also manages configuration for Group Communication tasks/services.
IConfiguration Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.GetContextConfiguration | ( | ) |
Generates context configuration with a unique identifier.
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
int Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.GetContextNum | ( | IActiveContext | activeContext | ) |
Gets the context number associated with the Active Context id.
activeContext | The active context to check |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
IConfiguration Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.GetGroupCommTaskConfiguration | ( | string | taskId | ) |
Get the configuration for a particular task.
The task may belong to many Communication Groups, so each one is serialized in the configuration as a SerializedGroupConfig.
The user must merge their part of task configuration (task id, task class) with this returned Group Communication task configuration.
taskId | The id of the task Configuration to generate |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
IConfiguration Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.GetServiceConfiguration | ( | ) |
Get the service configuration required for running Group Communication on Reef tasks.
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
bool Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.IsMasterContextConfiguration | ( | IConfiguration | contextConfiguration | ) |
Checks whether this context configuration is used to configure the Master Task.
contextConfiguration | The context configuration to check |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
bool Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.IsMasterTaskContext | ( | IActiveContext | activeContext | ) |
Checks whether this active context can be used to run the Master Task.
activeContext | The active context to check |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
ICommunicationGroupDriver Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.NewCommunicationGroup | ( | string | groupName, |
int | numTasks | ||
) |
Create a new CommunicationGroup with the given name and number of tasks/operators.
groupName | The new group name |
numTasks | The number of tasks/operators in the group. |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
void Org.Apache.REEF.Network.Group.Driver.IGroupCommDriver.RemoveCommunicationGroup | ( | string | groupName | ) |
remove a communication group Throw ArgumentException if the group does not exist
groupName |
Implemented in Org.Apache.REEF.Network.Group.Driver.Impl.GroupCommDriver.
|
get |
|
get |
Returns the identifier for the master task