예제 #1
0
파일: dse_node.py 프로젝트: techkrish/ccm
 def dsetool(self, cmd):
     env = self.get_env()
     extension.append_to_client_env(self, env)
     dsetool = common.join_bin(self.get_install_dir(), 'bin', 'dsetool')
     args = [dsetool, '-h', 'localhost', '-j', str(self.jmx_port)]
     args += cmd.split()
     p = subprocess.Popen(args, env=env)
     p.wait()
예제 #2
0
 def dsetool(self, cmd):
     env = self.get_env()
     extension.append_to_client_env(self, env)
     dsetool = common.join_bin(self.get_install_dir(), 'bin', 'dsetool')
     args = [dsetool, '-h', 'localhost', '-j', str(self.jmx_port)]
     args += cmd.split()
     p = subprocess.Popen(args, env=env)
     p.wait()
예제 #3
0
파일: dse_node.py 프로젝트: mshuler/ccm
 def dsetool(self, cmd):
     env = self.get_env()
     extension.append_to_client_env(self, env)
     node_ip, binary_port = self.network_interfaces['binary']
     dsetool = common.join_bin(self.get_install_dir(), 'bin', 'dsetool')
     args = [dsetool, '-h', node_ip, '-j', str(self.jmx_port), '-c', str(binary_port)]
     args += cmd.split()
     p = subprocess.Popen(args, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     return handle_external_tool_process(p, args)
예제 #4
0
 def dsetool(self, cmd):
     env = self.get_env()
     extension.append_to_client_env(self, env)
     node_ip, binary_port = self.network_interfaces['binary']
     dsetool = common.join_bin(self.get_install_dir(), 'bin', 'dsetool')
     args = [dsetool, '-h', node_ip, '-j', str(self.jmx_port), '-c', str(binary_port)]
     args += cmd.split()
     p = subprocess.Popen(args, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     return handle_external_tool_process(p, args)
예제 #5
0
파일: dse_node.py 프로젝트: mshuler/ccm
 def dse(self, dse_options=None):
     if dse_options is None:
         dse_options = []
     env = self.get_env()
     extension.append_to_client_env(self, env)
     env['JMX_PORT'] = self.jmx_port
     dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
     args = [dse]
     args += dse_options
     p = subprocess.Popen(args, env=env)  #Don't redirect stdout/stderr, users need to interact with new process
     return handle_external_tool_process(p, args)
예제 #6
0
 def dse(self, dse_options=None):
     if dse_options is None:
         dse_options = []
     env = self.get_env()
     extension.append_to_client_env(self, env)
     env['JMX_PORT'] = self.jmx_port
     dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
     args = [dse]
     args += dse_options
     p = subprocess.Popen(args, env=env)  #Don't redirect stdout/stderr, users need to interact with new process
     return handle_external_tool_process(p, args)
예제 #7
0
 def dse(self, dse_options=None):
     if dse_options is None:
         dse_options = []
     env = self.get_env()
     extension.append_to_client_env(self, env)
     env['JMX_PORT'] = self.jmx_port
     dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
     args = [dse]
     args += dse_options
     p = subprocess.Popen(args, env=env)
     p.wait()
예제 #8
0
 def dse(self, dse_options=None):
     if dse_options is None:
         dse_options = []
     env = self.get_env()
     extension.append_to_client_env(self, env)
     env['JMX_PORT'] = self.jmx_port
     dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
     args = [dse]
     args += dse_options
     p = subprocess.Popen(args, env=env)
     p.wait()