karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4166) Add karaf.lock.exclusive property to prevent a slave instance to start
Date Thu, 07 Jan 2016 16:29:39 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15087659#comment-15087659
] 

ASF subversion and git services commented on KARAF-4166:
--------------------------------------------------------

Commit bffcbc032b2f0f90431201f09830c9717b8f27c9 in karaf's branch refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=bffcbc0 ]

KARAF-4166 - Introduce karaf.lock.exclusive property to prevent slave instance to start


> Add karaf.lock.exclusive property to prevent a slave instance to start
> ----------------------------------------------------------------------
>
>                 Key: KARAF-4166
>                 URL: https://issues.apache.org/jira/browse/KARAF-4166
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.6, 4.0.4
>
>
> By default, a Karaf slave instance starts to be able to "pre-install" bundle there.
> We can enhance the SimpleLockFile (controled a karaf.lock.exclusive property) like this:
> {code}
> boolean lock() throws Exception {
>  boolean locked = super.lock();
>  if (!locked) throw new RuntimeException("startup aborted");
>  return true;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message