Author: challngr
Date: Thu May 15 21:12:53 2014
New Revision: 1595046

URL: http://svn.apache.org/r1595046
Log:
UIMA-3824 RM Query API/CLI

Added:
    uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload   (with props)

Added: uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload?rev=1595046&view=auto
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload (added)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload Thu May 15 21:12:53 
2014
@@ -0,0 +1,54 @@
+#!/usr/bin/env python
+# -----------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# -----------------------------------------------------------------------
+
+
+import os
+import sys
+
+from ducc_util  import DuccUtil
+
+class DuccRmQLoad(DuccUtil):
+
+    def usage(self, msg):
+        if ( msg != None ):
+            print msg
+
+        print 'rm_qload'
+        print '    This returns statistics indicative of the load and 
scheduling capacity of the system'
+        print ''
+        print 'Example:'
+        print '   rm_qload'
+    
+    def main(self):
+
+       
+        DUCC_JVM_OPTS = ' -Dducc.deploy.configuration=' + self.DUCC_HOME + 
"/resources/ducc.properties "
+        DUCC_JVM_OPTS = DUCC_JVM_OPTS + ' -DDUCC_HOME=' + self.DUCC_HOME
+        DUCC_JVM_OPTS = DUCC_JVM_OPTS + ' -Dducc.head=' + 
self.ducc_properties.get('ducc.head')
+
+        self.spawn(self.java(), DUCC_JVM_OPTS, 
'org.apache.uima.ducc.common.main.DuccRmAdmin', '--qnodes') 
+        
+        return
+
+if __name__ == "__main__":
+    stopper = DuccRmQLoad()
+    stopper.main()
+
+    

Propchange: uima/sandbox/uima-ducc/trunk/src/main/admin/rm_qload
------------------------------------------------------------------------------
    svn:executable = *


Reply via email to