Class AgentServerManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.classserver.AgentServerManagerImpl
-
- All Implemented Interfaces:
AgentServerManager
public class AgentServerManagerImpl extends Object implements AgentServerManager
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.agent.classserver.AgentServerManager
BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description AgentServerManagerImpl(BootstrapManager bootstrapManager, BambooBrokerService broker, Map<String,String> userProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Agent>getAgentClass(String agentType, String agentBootstrapVersion)ClassLoadergetClassLoader()ServerFingerprintgetFingerprint()Unique indetifier for the serverMap<String,String>getUserProperties()booleanisServerFingerprintValid(@Nullable String serverFingerprint)Returns true if finger print matches
-
-
-
Constructor Detail
-
AgentServerManagerImpl
public AgentServerManagerImpl(BootstrapManager bootstrapManager, BambooBrokerService broker, Map<String,String> userProperties)
- Parameters:
userProperties- The user properties to be passed to remote agents
-
-
Method Detail
-
isServerFingerprintValid
public boolean isServerFingerprintValid(@Nullable @Nullable String serverFingerprint)Description copied from interface:AgentServerManagerReturns true if finger print matches- Specified by:
isServerFingerprintValidin interfaceAgentServerManager- Returns:
- valid
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceAgentServerManager- Returns:
- the
ClassLoaderused to serve classes from
-
getFingerprint
public ServerFingerprint getFingerprint()
Description copied from interface:AgentServerManagerUnique indetifier for the server- Specified by:
getFingerprintin interfaceAgentServerManager- Returns:
- servers unique fingerprint
-
getAgentClass
public Class<? extends Agent> getAgentClass(String agentType, String agentBootstrapVersion)
- Specified by:
getAgentClassin interfaceAgentServerManager- Returns:
- the
Agentboot class to load at fingerprint
-
getUserProperties
public Map<String,String> getUserProperties()
- Specified by:
getUserPropertiesin interfaceAgentServerManager- Returns:
- user properties to pass to the remote agent
-
-