org.jfrog.build.api
Class BuildAgent

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

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

Information about the agent that executed the build (e.g. Maven, Ant/Ivy, Gradle etc.)

See Also:
Serialized Form

Constructor Summary
BuildAgent()
          Default constructor
BuildAgent(java.lang.String agent)
          Build the build agent from a full agent name in the following format: AGENT_NAME/AGENT_VERSION
BuildAgent(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

BuildAgent

public BuildAgent()
Default constructor


BuildAgent

public BuildAgent(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

BuildAgent

public BuildAgent(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_VERSION