com.atlassian.bamboo.agent.classserver
Class AgentServerManagerImpl

java.lang.Object
  extended by 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
AgentServerManagerImpl(BootstrapManager bootstrapManager, Map<Object,Object> userProperties)
           
 
Method Summary
 Class<? extends Agent> getAgentClass(String agentType, String agentBootstrapVersion)
           
 ClassLoader getClassLoader()
           
 ServerFingerprint getFingerprint()
          Unique indetifier for the server
 Map<Object,Object> getUserProperties()
           
 boolean isServerFingerprintValid(String serverFingerprint)
          Returns true if finger print matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentServerManagerImpl

public AgentServerManagerImpl(BootstrapManager bootstrapManager,
                              Map<Object,Object> userProperties)
                       throws NoSuchAlgorithmException
Parameters:
userProperties - The user properties to be passed to remote agents, in String "key=value" form. available.
Throws:
NoSuchAlgorithmException
Method Detail

isServerFingerprintValid

public boolean isServerFingerprintValid(String serverFingerprint)
Description copied from interface: AgentServerManager
Returns true if finger print matches

Specified by:
isServerFingerprintValid in interface AgentServerManager
Returns:
valid

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface AgentServerManager
Returns:
the ClassLoader used to serve classes from

getFingerprint

public ServerFingerprint getFingerprint()
Description copied from interface: AgentServerManager
Unique indetifier for the server

Specified by:
getFingerprint in interface AgentServerManager
Returns:
servers unique fingerprint

getAgentClass

public Class<? extends Agent> getAgentClass(String agentType,
                                            String agentBootstrapVersion)
Specified by:
getAgentClass in interface AgentServerManager
Returns:
the Agent boot class to load at fingerprint

getUserProperties

public Map<Object,Object> getUserProperties()
Specified by:
getUserProperties in interface AgentServerManager
Returns:
user properties to pass to the remote agent


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.