net.officefloor.frame.spi.team
Interface Team

All Known Implementing Classes:
AbstractExecutorTeamSource.ExecutorTeam, LeaderFollowerTeam, OnePersonTeam, PassiveTeam, ProcessContextTeam, WorkerPerTaskTeam

public interface Team

Team of workers to execute the assigned Job instances.

Author:
Daniel Sagenschneider

Method Summary
 void assignJob(Job job, TeamIdentifier assignerTeam)
          Assigns a Job to be executed by this Team.
 void startWorking()
          Indicates for the Team to start working.
 void stopWorking()
           Indicates for the Team to stop working.
 

Method Detail

startWorking

void startWorking()
Indicates for the Team to start working.


assignJob

void assignJob(Job job,
               TeamIdentifier assignerTeam)
Assigns a Job to be executed by this Team.

Parameters:
job - Job.
assignerTeam - TeamIdentifier of the Team assigning the Job to this Team.

stopWorking

void stopWorking()

Indicates for the Team to stop working.

This method should block and only return control when the Team has stopped working and is no longer assigned Job instances to complete.



Copyright © 2005-2013. All Rights Reserved.