test_class.declarator: elastiCacheRaider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private  ElastiCacheRaider elastiCacheRaider;
test_class.type: ElastiCacheRaider
test_class.var_name: elastiCacheRaider
test_class.declarator: elastiCacheDelegator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ElastiCacheDelegator elastiCacheDelegator;
test_class.type: ElastiCacheDelegator
test_class.var_name: elastiCacheDelegator
test_class.declarator: amazonElastiCache
test_class.modifier: private
test_class.original_string: private  AmazonElastiCache amazonElastiCache;
test_class.type: AmazonElastiCache
test_class.var_name: amazonElastiCache
test_class.declarator: cacheCluster
test_class.modifier: private
test_class.original_string: private CacheCluster cacheCluster;
test_class.type: CacheCluster
test_class.var_name: cacheCluster
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/core/impl/ElastiCacheRaiderImplTest.java
test_class.identifier: ElastiCacheRaiderImplTest
test_case.body: @Test
      public void testChangeSecurityGroupId(){
          elastiCacheRaider.changeSecurityGroupId("cacheCluster", "sg-123", "sg-456");
      }
test_case.class_method_signature: ElastiCacheRaiderImplTest.testChangeSecurityGroupId()
test_case.full_signature: @Test public void testChangeSecurityGroupId()
test_case.identifier: testChangeSecurityGroupId
test_case.invocations: changeSecurityGroupId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testChangeSecurityGroupId()
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: elastiCacheDelegator
focal_class.modifier: @Autowired
       private
focal_class.original_string: @Autowired
       private ElastiCacheDelegator elastiCacheDelegator;
focal_class.type: ElastiCacheDelegator
focal_class.var_name: elastiCacheDelegator
focal_class.file: cloudraider-core/src/main/java/com/intuit/cloudraider/core/impl/ElastiCacheRaiderImpl.java
focal_class.identifier: ElastiCacheRaiderImpl
focal_class.interfaces: implements ElastiCacheRaider
focal_class.class_method_signature: ElastiCacheRaiderImpl.ElastiCacheRaiderImpl()
focal_class.full_signature: public  ElastiCacheRaiderImpl()
focal_class.identifier: ElastiCacheRaiderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ElastiCacheRaiderImpl()
focal_class.class_method_signature: ElastiCacheRaiderImpl.rebootElastiCacheCluster(String clusterName, Integer numNodes)
focal_class.full_signature: @Override public void rebootElastiCacheCluster(String clusterName, Integer numNodes)
focal_class.identifier: rebootElastiCacheCluster
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, Integer numNodes)
focal_class.return: void
focal_class.signature: void rebootElastiCacheCluster(String clusterName, Integer numNodes)
focal_class.class_method_signature: ElastiCacheRaiderImpl.detachSubnet(String clusterName, String subnetId)
focal_class.full_signature: @Override public void detachSubnet(String clusterName, String subnetId)
focal_class.identifier: detachSubnet
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, String subnetId)
focal_class.return: void
focal_class.signature: void detachSubnet(String clusterName, String subnetId)
focal_class.class_method_signature: ElastiCacheRaiderImpl.attachSubnet(String clusterName, String subnetId)
focal_class.full_signature: @Override public void attachSubnet(String clusterName, String subnetId)
focal_class.identifier: attachSubnet
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, String subnetId)
focal_class.return: void
focal_class.signature: void attachSubnet(String clusterName, String subnetId)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getElastiCacheClusterStatus(String clusterName)
focal_class.full_signature: @Override public String getElastiCacheClusterStatus(String clusterName)
focal_class.identifier: getElastiCacheClusterStatus
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName)
focal_class.return: String
focal_class.signature: String getElastiCacheClusterStatus(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getCachedNodeId(Integer numNodes)
focal_class.full_signature: private List<String> getCachedNodeId(Integer numNodes)
focal_class.identifier: getCachedNodeId
focal_class.modifiers: private
focal_class.parameters: (Integer numNodes)
focal_class.return: List<String>
focal_class.signature: List<String> getCachedNodeId(Integer numNodes)
focal_class.class_method_signature: ElastiCacheRaiderImpl.addNodesToCluster(String clusterName, Integer numNodes)
focal_class.full_signature: @Override public void addNodesToCluster(String clusterName, Integer numNodes)
focal_class.identifier: addNodesToCluster
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, Integer numNodes)
focal_class.return: void
focal_class.signature: void addNodesToCluster(String clusterName, Integer numNodes)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getNumNodes(String clusterName)
focal_class.full_signature: public Integer getNumNodes(String clusterName)
focal_class.identifier: getNumNodes
focal_class.modifiers: public
focal_class.parameters: (String clusterName)
focal_class.return: Integer
focal_class.signature: Integer getNumNodes(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.removeNodesFromCluster(String clusterName, Integer numNodes)
focal_class.full_signature: @Override public void removeNodesFromCluster(String clusterName, Integer numNodes)
focal_class.identifier: removeNodesFromCluster
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, Integer numNodes)
focal_class.return: void
focal_class.signature: void removeNodesFromCluster(String clusterName, Integer numNodes)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getSubnetIds(String clusterName)
focal_class.full_signature: public List<String> getSubnetIds(String clusterName)
focal_class.identifier: getSubnetIds
focal_class.modifiers: public
focal_class.parameters: (String clusterName)
focal_class.return: List<String>
focal_class.signature: List<String> getSubnetIds(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getSubnetGroupName(String clusterName)
focal_class.full_signature: private String getSubnetGroupName(String clusterName)
focal_class.identifier: getSubnetGroupName
focal_class.modifiers: private
focal_class.parameters: (String clusterName)
focal_class.return: String
focal_class.signature: String getSubnetGroupName(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_class.full_signature: @Override public void changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_class.identifier: changeSecurityGroupId
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_class.return: void
focal_class.signature: void changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getSecurityGroups(String clusterName)
focal_class.full_signature: @Override public List<String> getSecurityGroups(String clusterName)
focal_class.identifier: getSecurityGroups
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName)
focal_class.return: List<String>
focal_class.signature: List<String> getSecurityGroups(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getAllElasticCacheNodes()
focal_class.full_signature: public List<CacheNode> getAllElasticCacheNodes()
focal_class.identifier: getAllElasticCacheNodes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<CacheNode>
focal_class.signature: List<CacheNode> getAllElasticCacheNodes()
focal_class.class_method_signature: ElastiCacheRaiderImpl.getAllElasticCacheNodesForGivenCluster(String clusterName)
focal_class.full_signature: public List<CacheNode> getAllElasticCacheNodesForGivenCluster(String clusterName)
focal_class.identifier: getAllElasticCacheNodesForGivenCluster
focal_class.modifiers: public
focal_class.parameters: (String clusterName)
focal_class.return: List<CacheNode>
focal_class.signature: List<CacheNode> getAllElasticCacheNodesForGivenCluster(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getAllElastiCacheNodeNames()
focal_class.full_signature: @Override public List<String> getAllElastiCacheNodeNames()
focal_class.identifier: getAllElastiCacheNodeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAllElastiCacheNodeNames()
focal_class.class_method_signature: ElastiCacheRaiderImpl.getAllElastiCacheNodeNames(String clusterName)
focal_class.full_signature: @Override public List<String> getAllElastiCacheNodeNames(String clusterName)
focal_class.identifier: getAllElastiCacheNodeNames
focal_class.modifiers: @Override public
focal_class.parameters: (String clusterName)
focal_class.return: List<String>
focal_class.signature: List<String> getAllElastiCacheNodeNames(String clusterName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.getElastiCacheNodeStatus(String nodeName)
focal_class.full_signature: @Override public String getElastiCacheNodeStatus(String nodeName)
focal_class.identifier: getElastiCacheNodeStatus
focal_class.modifiers: @Override public
focal_class.parameters: (String nodeName)
focal_class.return: String
focal_class.signature: String getElastiCacheNodeStatus(String nodeName)
focal_class.class_method_signature: ElastiCacheRaiderImpl.rebootElasticCacheNode(String nodeName)
focal_class.full_signature: @Override public void rebootElasticCacheNode(String nodeName)
focal_class.identifier: rebootElasticCacheNode
focal_class.modifiers: @Override public
focal_class.parameters: (String nodeName)
focal_class.return: void
focal_class.signature: void rebootElasticCacheNode(String nodeName)
focal_method.body: @Override
      public void changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId) {
  
          List<String> securityGroupIds = this.getSecurityGroups(clusterName);
          securityGroupIds.add(toSecurityGroupId);
          securityGroupIds.remove(fromSecurityGroupId);
  
          ModifyCacheClusterRequest modifyCacheClusterRequest = new ModifyCacheClusterRequest()
                  .withCacheClusterId(clusterName)
                  .withSecurityGroupIds(securityGroupIds)
                  .withApplyImmediately(true);
  
          try {
              elastiCacheDelegator.getAmazonElastiCache().modifyCacheCluster(modifyCacheClusterRequest);
          } catch (Exception ex) {
              throw new RuntimeException(ex.getMessage());
          }
  
      }
focal_method.class_method_signature: ElastiCacheRaiderImpl.changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_method.full_signature: @Override public void changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_method.identifier: changeSecurityGroupId
focal_method.invocations: getSecurityGroups add remove withApplyImmediately withSecurityGroupIds withCacheClusterId modifyCacheCluster getAmazonElastiCache getMessage
focal_method.modifiers: @Override public
focal_method.parameters: (String clusterName, String fromSecurityGroupId, String toSecurityGroupId)
focal_method.return: void
focal_method.signature: void changeSecurityGroupId(String clusterName, String fromSecurityGroupId, String toSecurityGroupId)