mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Added Configurable interface
This commit is contained in:
		
							parent
							
								
									b8c01cfdd0
								
							
						
					
					
						commit
						0b1f97d048
					
				@ -43,6 +43,7 @@ import org.apache.log4j.Logger;
 | 
			
		||||
import org.apache.cloudstack.config.ConfigDepot;
 | 
			
		||||
import org.apache.cloudstack.config.ConfigKey;
 | 
			
		||||
import org.apache.cloudstack.config.ConfigValue;
 | 
			
		||||
import org.apache.cloudstack.config.Configurable;
 | 
			
		||||
import org.apache.cloudstack.context.ServerContexts;
 | 
			
		||||
import org.apache.cloudstack.utils.identity.ManagementServerNode;
 | 
			
		||||
 | 
			
		||||
@ -120,7 +121,7 @@ import com.cloud.utils.time.InaccurateClock;
 | 
			
		||||
 * Implementation of the Agent Manager. This class controls the connection to the agents.
 | 
			
		||||
 **/
 | 
			
		||||
@Local(value = { AgentManager.class })
 | 
			
		||||
public class AgentManagerImpl extends ManagerBase implements AgentManager, HandlerFactory {
 | 
			
		||||
public class AgentManagerImpl extends ManagerBase implements AgentManager, HandlerFactory, Configurable {
 | 
			
		||||
    protected static final Logger s_logger = Logger.getLogger(AgentManagerImpl.class);
 | 
			
		||||
    protected static final Logger status_logger = Logger.getLogger(Status.class);
 | 
			
		||||
 | 
			
		||||
@ -1577,4 +1578,9 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public ConfigKey<?>[] getConfigKeys() {
 | 
			
		||||
        return new ConfigKey<?>[] {Workers, Port, PingInterval, PingTimeout, Wait, AlertWait, DirectAgentLoadSize, DirectAgentPoolSize};
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user