jetbrains.buildServer.agentServer
Class AgentDetails

java.lang.Object
  extended by jetbrains.buildServer.agentServer.AgentDetails

public class AgentDetails
extends java.lang.Object

Incapsulates agent settings to be sent to a server during registration.


Constructor Summary
AgentDetails(java.lang.String agentName, java.lang.String agentAddress, int agentPort, java.lang.String authorizationToken)
           
 
Method Summary
static AgentDetails deserializeFromOldString(java.lang.String serialized)
          Deprecated. use deserializeString(String)}
static AgentDetails deserializeString(java.lang.String serialized)
           
 java.lang.String getAgentAddress()
           
 java.lang.Integer getAgentId()
           
 java.lang.String getAgentName()
           
 int getAgentPort()
           
 java.lang.String getAgentVersion()
           
 java.util.List<java.lang.String> getAlternativeAddresses()
           
 java.lang.String getAuthorizationToken()
           
 java.util.Collection<java.lang.String> getAvailableRunners()
           
 java.util.Collection<java.lang.String> getAvailableVcsPlugins()
           
 java.lang.Long getBuildId()
           
 java.util.Map<java.lang.String,java.lang.String> getBuildParameters()
           
 java.util.Map<java.lang.String,java.lang.String> getConfigParameters()
           
 int getCpuBenchmarkIndex()
           
 java.lang.String getOsName()
           
 java.lang.String getPluginsVersion()
           
 java.lang.String getVersion()
           
 java.lang.String serializeToOldString()
          Deprecated. use serializeToString()
 java.lang.String serializeToString()
           
 void setAgentAddress(java.lang.String agentAddress)
           
 void setAgentId(java.lang.Integer agentId)
           
 void setAgentVersion(java.lang.String version)
           
 void setAlternativeAddresses(java.util.List<java.lang.String> addresses)
           
 void setAuthorizationToken(java.lang.String authorizationToken)
           
 void setAvailableRunners(java.util.Collection<java.lang.String> availableRunners)
           
 void setAvailableVcsPlugins(java.util.Collection<java.lang.String> available)
           
 void setBuildId(java.lang.Long buildId)
           
 void setBuildParameters(java.util.Map<java.lang.String,java.lang.String> buildParameters)
           
 void setConfigParameters(java.util.Map<java.lang.String,java.lang.String> configParameters)
           
 void setOsName(java.lang.String osName)
           
 void setPluginsVersion(java.lang.String pluginsVersion)
           
 void setServerInferredAgentAddress(java.lang.String address)
           
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentDetails

public AgentDetails(@NotNull
                    java.lang.String agentName,
                    @Nullable
                    java.lang.String agentAddress,
                    int agentPort,
                    @NotNull
                    java.lang.String authorizationToken)
Method Detail

getAgentId

public java.lang.Integer getAgentId()

setAgentId

public void setAgentId(@Nullable
                       java.lang.Integer agentId)

getVersion

public java.lang.String getVersion()

setVersion

public void setVersion(java.lang.String version)

getConfigParameters

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getConfigParameters()

getBuildParameters

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getBuildParameters()

setConfigParameters

public void setConfigParameters(@NotNull
                                java.util.Map<java.lang.String,java.lang.String> configParameters)

setBuildParameters

public void setBuildParameters(@NotNull
                               java.util.Map<java.lang.String,java.lang.String> buildParameters)

getAlternativeAddresses

@NotNull
public java.util.List<java.lang.String> getAlternativeAddresses()

setAlternativeAddresses

public void setAlternativeAddresses(@NotNull
                                    java.util.List<java.lang.String> addresses)

getAgentName

@NotNull
public java.lang.String getAgentName()

getAgentAddress

@Nullable
public java.lang.String getAgentAddress()

setAgentAddress

public void setAgentAddress(@Nullable
                            java.lang.String agentAddress)

getAgentPort

public int getAgentPort()

getAuthorizationToken

@NotNull
public java.lang.String getAuthorizationToken()

setAuthorizationToken

public void setAuthorizationToken(@NotNull
                                  java.lang.String authorizationToken)

setServerInferredAgentAddress

public void setServerInferredAgentAddress(@NotNull
                                          java.lang.String address)

getOsName

@Nullable
public java.lang.String getOsName()

getCpuBenchmarkIndex

public int getCpuBenchmarkIndex()

setOsName

public void setOsName(@Nullable
                      java.lang.String osName)

getAgentVersion

@NotNull
public java.lang.String getAgentVersion()

setAgentVersion

public void setAgentVersion(@NotNull
                            java.lang.String version)

getPluginsVersion

@NotNull
public java.lang.String getPluginsVersion()

setPluginsVersion

public void setPluginsVersion(@NotNull
                              java.lang.String pluginsVersion)

getBuildId

@Nullable
public java.lang.Long getBuildId()

setBuildId

public void setBuildId(@Nullable
                       java.lang.Long buildId)

getAvailableRunners

@NotNull
public java.util.Collection<java.lang.String> getAvailableRunners()

setAvailableRunners

public void setAvailableRunners(@NotNull
                                java.util.Collection<java.lang.String> availableRunners)

getAvailableVcsPlugins

@NotNull
public java.util.Collection<java.lang.String> getAvailableVcsPlugins()

setAvailableVcsPlugins

public void setAvailableVcsPlugins(@NotNull
                                   java.util.Collection<java.lang.String> available)

serializeToOldString

public java.lang.String serializeToOldString()
Deprecated. use serializeToString()

Returns:
serialized info

serializeToString

public java.lang.String serializeToString()

deserializeFromOldString

@NotNull
public static AgentDetails deserializeFromOldString(@NotNull
                                                            java.lang.String serialized)
Deprecated. use deserializeString(String)}

Parameters:
serialized - string
Returns:
deserialized object

deserializeString

@NotNull
public static AgentDetails deserializeString(@NotNull
                                                     java.lang.String serialized)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object