Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9723210B35 for ; Wed, 17 Dec 2014 03:36:13 +0000 (UTC) Received: (qmail 31709 invoked by uid 500); 17 Dec 2014 03:36:13 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 31663 invoked by uid 500); 17 Dec 2014 03:36:13 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 31647 invoked by uid 99); 17 Dec 2014 03:36:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 03:36:13 +0000 Date: Wed, 17 Dec 2014 03:36:13 +0000 (UTC) From: "David Medinets (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-3390) Allow MiniAccumuloCluster to start Monitor. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14249412#comment-14249412 ] David Medinets commented on ACCUMULO-3390: ------------------------------------------ I've found that it is extremely easy to start the Monitor thread alongside the MAC. Here is the code: {noformat} MiniAccumuloConfigImpl miniAccumuloConfig = new MiniAccumuloConfigImpl(new File("/accumulo"), "password"); miniAccumuloConfig.setProperty(Property.MONITOR_PORT, "20001"); MiniAccumuloClusterImpl accumulo = new MiniAccumuloClusterImpl(miniAccumuloConfig); accumulo.start(); accumulo.exec(Monitor.class); {noformat} My compliments to the designers of the MAC! The MiniAccumuloConfig works very well. > Allow MiniAccumuloCluster to start Monitor. > ------------------------------------------- > > Key: ACCUMULO-3390 > URL: https://issues.apache.org/jira/browse/ACCUMULO-3390 > Project: Accumulo > Issue Type: Improvement > Affects Versions: 1.6.1 > Reporter: David Medinets > Priority: Minor > Labels: newbie > > The MiniAccumuloCluster class does not provide a way to get to the MiniAccumuloClusterImpl object in order to start a Monitor thread. Perhaps just adding the following would be enough? > {noformat} > public void startMonitor() { > impl..exec(Monitor.class); > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)