You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by bu...@apache.org on 2016/03/11 14:48:05 UTC
svn commit: r1734560 - /uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py
Author: burn
Date: Fri Mar 11 13:48:05 2016
New Revision: 1734560
URL: http://svn.apache.org/viewvc?rev=1734560&view=rev
Log:
UIMA-4832 Enable remote JMX access to the DB only if property ducc.database.jmx.host != 'localhost'
Modified:
uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py?rev=1734560&r1=1734559&r2=1734560&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py Fri Mar 11 13:48:05 2016
@@ -65,8 +65,10 @@ class Ducc(DuccUtil):
jmxport = self.ducc_properties.get('ducc.database.jmx.port')
if ( jmxport != None ):
os.environ['JMX_PORT'] = jmxport
+
+ jmxhost = self.ducc_properties.get('ducc.database.jmx.host')
+ if ( jmxhost != None and jmxhost != 'localhost' ):
os.environ['LOCAL_JMX'] = 'no'
- # Remove above line for local-only JMX access to the DB
os.chdir(self.DUCC_HOME + "/cassandra-server")
pidfile = self.DUCC_HOME + '/state/cassandra.pid'