mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Always use premium setting in ConsoleProxyManager
This commit is contained in:
		
							parent
							
								
									93985ae191
								
							
						
					
					
						commit
						17a94b20ec
					
				| @ -106,7 +106,6 @@ import org.apache.http.protocol.ResponseContent; | |||||||
| import org.apache.http.protocol.ResponseDate; | import org.apache.http.protocol.ResponseDate; | ||||||
| import org.apache.http.protocol.ResponseServer; | import org.apache.http.protocol.ResponseServer; | ||||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||||
| import org.springframework.aop.framework.Advised; |  | ||||||
| import org.springframework.stereotype.Component; | import org.springframework.stereotype.Component; | ||||||
| 
 | 
 | ||||||
| import com.cloud.api.response.ApiResponseSerializer; | import com.cloud.api.response.ApiResponseSerializer; | ||||||
| @ -452,7 +451,7 @@ public class ApiServer implements HttpRequestHandler { | |||||||
|             ctx.setAccountId(asyncCmd.getEntityOwnerId()); |             ctx.setAccountId(asyncCmd.getEntityOwnerId()); | ||||||
| 
 | 
 | ||||||
|             Long instanceId = (objectId == null) ? asyncCmd.getInstanceId() : objectId; |             Long instanceId = (objectId == null) ? asyncCmd.getInstanceId() : objectId; | ||||||
|             AsyncJobVO job = new AsyncJobVO(callerUserId, caller.getId(), cmdObj.getClass().getName(), |             AsyncJobVO job = new AsyncJobVO(callerUserId, caller.getId(), realCmdObj.getClass().getName(), | ||||||
|                     ApiGsonHelper.getBuilder().create().toJson(params), instanceId, asyncCmd.getInstanceType()); |                     ApiGsonHelper.getBuilder().create().toJson(params), instanceId, asyncCmd.getInstanceType()); | ||||||
| 
 | 
 | ||||||
|             long jobId = _asyncMgr.submitAsyncJob(job); |             long jobId = _asyncMgr.submitAsyncJob(job); | ||||||
|  | |||||||
| @ -259,7 +259,7 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx | |||||||
|     private String _instance; |     private String _instance; | ||||||
| 
 | 
 | ||||||
|     private int _proxySessionTimeoutValue = DEFAULT_PROXY_SESSION_TIMEOUT; |     private int _proxySessionTimeoutValue = DEFAULT_PROXY_SESSION_TIMEOUT; | ||||||
|     private boolean _sslEnabled = false; |     private boolean _sslEnabled = true; | ||||||
| 
 | 
 | ||||||
|     // global load picture at zone basis |     // global load picture at zone basis | ||||||
|     private SystemVmLoadScanner<Long> _loadScanner; |     private SystemVmLoadScanner<Long> _loadScanner; | ||||||
|  | |||||||
| @ -121,9 +121,9 @@ public class ComponentContext implements ApplicationContextAware { | |||||||
|     } |     } | ||||||
|       |       | ||||||
|     public static Class<?> getTargetClass(Object instance) { |     public static Class<?> getTargetClass(Object instance) { | ||||||
| 	    if(instance instanceof Advised) { | 	    while(instance instanceof Advised) { | ||||||
| 	    	try { | 	    	try { | ||||||
| 	    		return ((Advised)instance).getTargetSource().getTarget().getClass(); | 	    		instance = ((Advised)instance).getTargetSource().getTarget(); | ||||||
| 	    	} catch(Exception e) { | 	    	} catch(Exception e) { | ||||||
| 	    		return instance.getClass(); | 	    		return instance.getClass(); | ||||||
| 	    	} | 	    	} | ||||||
| @ -132,9 +132,9 @@ public class ComponentContext implements ApplicationContextAware { | |||||||
|     } |     } | ||||||
|      |      | ||||||
|     public static <T> T getTargetObject(Object instance) { |     public static <T> T getTargetObject(Object instance) { | ||||||
|         if(instance instanceof Advised) { |         while(instance instanceof Advised) { | ||||||
|         	 try { |         	 try { | ||||||
| 				return (T)((Advised)instance).getTargetSource().getTarget(); | 				instance = ((Advised)instance).getTargetSource().getTarget(); | ||||||
| 			} catch (Exception e) { | 			} catch (Exception e) { | ||||||
| 				return (T)instance; | 				return (T)instance; | ||||||
| 			} | 			} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user