test_class.declarator: systemRaider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private  SystemRaider systemRaider;
test_class.type: SystemRaider
test_class.var_name: systemRaider
test_class.declarator: systemDelegator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private  SystemDelegator systemDelegator;
test_class.type: SystemDelegator
test_class.var_name: systemDelegator
test_class.declarator: sshParameters
test_class.modifier: private
test_class.original_string: private  SshParameters sshParameters;
test_class.type: SshParameters
test_class.var_name: sshParameters
test_class.declarator: mockedSessionFactory
test_class.modifier: private
test_class.original_string: private  CloudRaiderSSHSessionFactory mockedSessionFactory;
test_class.type: CloudRaiderSSHSessionFactory
test_class.var_name: mockedSessionFactory
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/core/impl/SystemRaiderImplTest.java
test_class.identifier: SystemRaiderImplTest
test_case.body: @Test
      public void executeTest() throws URISyntaxException {
          String path  = getClass().getClassLoader().getResource("test.sh").getPath();
          Assert.assertEquals("success",systemRaider.executeScript("127.0.0.1",path,"param1","param2"));
      }
test_case.class_method_signature: SystemRaiderImplTest.executeTest()
test_case.full_signature: @Test public void executeTest()
test_case.identifier: executeTest
test_case.invocations: getPath getResource getClassLoader getClass assertEquals executeScript
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void executeTest()
focal_class.declarator: systemDelegator
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SystemDelegator systemDelegator;
focal_class.type: SystemDelegator
focal_class.var_name: systemDelegator
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.file: cloudraider-core/src/main/java/com/intuit/cloudraider/core/impl/SystemRaiderImpl.java
focal_class.identifier: SystemRaiderImpl
focal_class.interfaces: implements SystemRaider
focal_class.class_method_signature: SystemRaiderImpl.SystemRaiderImpl()
focal_class.full_signature: public  SystemRaiderImpl()
focal_class.identifier: SystemRaiderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SystemRaiderImpl()
focal_class.class_method_signature: SystemRaiderImpl.executeScript(String ip, String path, String... params)
focal_class.full_signature: @Override public String executeScript(String ip, String path, String... params)
focal_class.identifier: executeScript
focal_class.modifiers: @Override public
focal_class.parameters: (String ip, String path, String... params)
focal_class.return: String
focal_class.signature: String executeScript(String ip, String path, String... params)
focal_class.class_method_signature: SystemRaiderImpl.executeScript(String ip, String path, List<String> params)
focal_class.full_signature: @Override public String executeScript(String ip, String path, List<String> params)
focal_class.identifier: executeScript
focal_class.modifiers: @Override public
focal_class.parameters: (String ip, String path, List<String> params)
focal_class.return: String
focal_class.signature: String executeScript(String ip, String path, List<String> params)
focal_class.class_method_signature: SystemRaiderImpl.createSessionFactory(String ip)
focal_class.full_signature: private SessionFactory createSessionFactory(String ip)
focal_class.identifier: createSessionFactory
focal_class.modifiers: private
focal_class.parameters: (String ip)
focal_class.return: SessionFactory
focal_class.signature: SessionFactory createSessionFactory(String ip)
focal_class.class_method_signature: SystemRaiderImpl.scpScript(SessionFactory sessionFactory, String scriptPath)
focal_class.full_signature: private void scpScript(SessionFactory sessionFactory, String scriptPath)
focal_class.identifier: scpScript
focal_class.modifiers: private
focal_class.parameters: (SessionFactory sessionFactory, String scriptPath)
focal_class.return: void
focal_class.signature: void scpScript(SessionFactory sessionFactory, String scriptPath)
focal_class.class_method_signature: SystemRaiderImpl.executer(String ip)
focal_class.full_signature: private String executer(String ip)
focal_class.identifier: executer
focal_class.modifiers: private
focal_class.parameters: (String ip)
focal_class.return: String
focal_class.signature: String executer(String ip)
focal_class.class_method_signature: SystemRaiderImpl.executer(String ip, String... params)
focal_class.full_signature: private String executer(String ip, String... params)
focal_class.identifier: executer
focal_class.modifiers: private
focal_class.parameters: (String ip, String... params)
focal_class.return: String
focal_class.signature: String executer(String ip, String... params)
focal_class.class_method_signature: SystemRaiderImpl.executer(String ip, List<String> params)
focal_class.full_signature: private String executer(String ip, List<String> params)
focal_class.identifier: executer
focal_class.modifiers: private
focal_class.parameters: (String ip, List<String> params)
focal_class.return: String
focal_class.signature: String executer(String ip, List<String> params)
focal_class.class_method_signature: SystemRaiderImpl.executer(String command, Session session, String... params)
focal_class.full_signature: private Boolean executer(String command, Session session, String... params)
focal_class.identifier: executer
focal_class.modifiers: private
focal_class.parameters: (String command, Session session, String... params)
focal_class.return: Boolean
focal_class.signature: Boolean executer(String command, Session session, String... params)
focal_class.class_method_signature: SystemRaiderImpl.executer(String command, Session session, List<String> params)
focal_class.full_signature: private Boolean executer(String command, Session session, List<String> params)
focal_class.identifier: executer
focal_class.modifiers: private
focal_class.parameters: (String command, Session session, List<String> params)
focal_class.return: Boolean
focal_class.signature: Boolean executer(String command, Session session, List<String> params)
focal_method.body: @Override
      public String executeScript(String ip, String path, String... params) {
          String response;
          SessionFactory sessionFactory;
          try {
              sessionFactory = createSessionFactory(ip);
              scpScript(sessionFactory, path);
              response = executer(ip, params);
  
          } catch (JSchException e) {
              return "unable to connect to " + ip;
          } catch (IOException e) {
              return "unable to copy file to the host, error: " + e;
          } catch (Exception e) {
              e.printStackTrace();
              throw new RuntimeException(e);
          }
          return response;
  
      }
focal_method.class_method_signature: SystemRaiderImpl.executeScript(String ip, String path, String... params)
focal_method.full_signature: @Override public String executeScript(String ip, String path, String... params)
focal_method.identifier: executeScript
focal_method.invocations: createSessionFactory scpScript executer printStackTrace
focal_method.modifiers: @Override public
focal_method.parameters: (String ip, String path, String... params)
focal_method.return: String
focal_method.signature: String executeScript(String ip, String path, String... params)