com.sun.faban.harness.tools
Class MasterToolContext

java.lang.Object
  extended by com.sun.faban.harness.tools.MasterToolContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ToolContext

public class MasterToolContext
extends Object
implements Serializable

The master tool context is the master view of the tool context which exists for every single tool.

Author:
Sheetal Patil
See Also:
Serialized Form

Constructor Summary
MasterToolContext(String tool, ServiceContext ctx, ToolDescription desc)
          Constructs the master tool context.
 
Method Summary
 boolean equals(Object obj)
           
 String getTool()
          Returns the tool name.
 ToolDescription getToolDescription()
          Returns ToolDescription.
 String getToolId()
          Returns the tool id.
 String getToolParams()
          Returns tool parameters.
 ServiceContext getToolServiceContext()
          Returns ServiceContext of the tool.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterToolContext

public MasterToolContext(String tool,
                         ServiceContext ctx,
                         ToolDescription desc)
Constructs the master tool context.

Parameters:
tool - The tool name
ctx - The service context for this tool, if any
desc - The tool description
Method Detail

getToolId

public String getToolId()
Returns the tool id.

Returns:
toolid as string

getTool

public String getTool()
Returns the tool name.

Returns:
tool name as string

getToolDescription

public ToolDescription getToolDescription()
Returns ToolDescription.

Returns:
ToolDescription

getToolServiceContext

public ServiceContext getToolServiceContext()
Returns ServiceContext of the tool.

Returns:
ServiceContext

getToolParams

public String getToolParams()
Returns tool parameters.

Returns:
params as String

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object