net.grinder.console.common
Class ProcessReportDescriptionFactory

java.lang.Object
  extended by net.grinder.console.common.ProcessReportDescriptionFactory

public final class ProcessReportDescriptionFactory
extends Object

Factory that converts process reports into descriptions that can be used in the user interface.

Author:
Philip Aston

Nested Class Summary
static class ProcessReportDescriptionFactory.ProcessDescription
          Various descriptions of the attributes of a process report.
 
Constructor Summary
ProcessReportDescriptionFactory(Resources resources)
          Constructor.
 
Method Summary
 ProcessReportDescriptionFactory.ProcessDescription create(AgentProcessReport agentProcessReport)
          Factory method that creates a description from an agent process report.
 ProcessReportDescriptionFactory.ProcessDescription create(WorkerProcessReport workerProcessReport)
          Factory method that creates a description from a worker process report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessReportDescriptionFactory

public ProcessReportDescriptionFactory(Resources resources)
Constructor.

Parameters:
resources - Console resources.
Method Detail

create

public ProcessReportDescriptionFactory.ProcessDescription create(AgentProcessReport agentProcessReport)
Factory method that creates a description from an agent process report.

Parameters:
agentProcessReport - The process report.
Returns:
The description.

create

public ProcessReportDescriptionFactory.ProcessDescription create(WorkerProcessReport workerProcessReport)
Factory method that creates a description from a worker process report.

Parameters:
workerProcessReport - The process report.
Returns:
The description.


Copyright © 2000-2013. All Rights Reserved.