org.jfrog.build.api
Class Agent

java.lang.Object
  extended by org.jfrog.build.api.Agent
All Implemented Interfaces:
java.io.Serializable

public class Agent
extends java.lang.Object
implements java.io.Serializable

Information about the agent that triggered the build (e.g. Hudson, TeamCity etc.).

See Also:
Serialized Form

Constructor Summary
Agent()
          Default constructor
Agent(java.lang.String agent)
          Build the build agent from a full agent name in the following format: AGENT_NAME/AGENT_VERSION
Agent(java.lang.String name, java.lang.String version)
          Main constructor
 
Method Summary
 java.lang.String getName()
          Returns the name of the agent
 java.lang.String getVersion()
          Returns the version of the agent
 void setName(java.lang.String name)
          Sets the name of the agent
 void setVersion(java.lang.String version)
          Sets the version of the agent
 java.lang.String toString()
          Returns the display representation of the agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Agent

public Agent()
Default constructor


Agent

public Agent(java.lang.String agent)
Build the build agent from a full agent name in the following format: AGENT_NAME/AGENT_VERSION

Parameters:
agent - The agent name

Agent

public Agent(java.lang.String name,
             java.lang.String version)
Main constructor

Parameters:
name - Agent name
version - Agent version
Method Detail

getName

public java.lang.String getName()
Returns the name of the agent

Returns:
Agent name

setName

public void setName(java.lang.String name)
Sets the name of the agent

Parameters:
name - Agent name

getVersion

public java.lang.String getVersion()
Returns the version of the agent

Returns:
Agent version

setVersion

public void setVersion(java.lang.String version)
Sets the version of the agent

Parameters:
version - Agent version

toString

public java.lang.String toString()
Returns the display representation of the agent

Overrides:
toString in class java.lang.Object
Returns:
AGENT_NAME/AGENT_VERISON