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 java.lang.Object
implements AgentServerManager


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.agent.classserver.AgentServerManager
BEAN_NAME
 
Constructor Summary
AgentServerManagerImpl(BootstrapManager bootstrapManager, java.util.Map<java.lang.Object,java.lang.Object> userProperties)
           
 
Method Summary
 java.lang.Class<? extends Agent> getAgentClass(java.lang.String agentType, java.lang.String agentBootstrapVersion)
           
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getFingerprint()
          Unique indetifier for the server
 java.util.Map<java.lang.Object,java.lang.Object> getUserProperties()
           
 boolean isFingerprintValid(java.lang.String fingerprint)
          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,
                              java.util.Map<java.lang.Object,java.lang.Object> userProperties)
                       throws java.security.NoSuchAlgorithmException
Parameters:
userProperties - The user properties to be passed to remote agents, in String "key=value" form. available.
Throws:
java.security.NoSuchAlgorithmException
Method Detail

isFingerprintValid

public boolean isFingerprintValid(java.lang.String fingerprint)
Description copied from interface: AgentServerManager
Returns true if finger print matches

Specified by:
isFingerprintValid in interface AgentServerManager
Returns:
valid

getClassLoader

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

getFingerprint

public java.lang.String getFingerprint()
Description copied from interface: AgentServerManager
Unique indetifier for the server

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

getAgentClass

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

getUserProperties

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.