~ubuntu-branches/ubuntu/jaunty/beagle/jaunty-security

« back to all changes in this revision

Viewing changes to beagled/Lucene.Net/Store/LockFactory.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-04 00:31:32 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20080504003132-2tkm5o8moo5952ri
Tags: 0.3.7-2ubuntu1
 * Merge from Debian unstable. (LP: #225746) Remaining Ubuntu changes:
  - debian/control:
    + Rename ice{weasel,dove}-beagle to {mozilla,thunderbird}-beagle and
      and update the dependencies accordingly.
    + Change Maintainer to Ubuntu Mono Team.
  - debian/rules:
    + Install the mozilla-beagle and thunderbird-beagle extensions.
  - ice{dove,weasel}.dirs:
    + Renamed to {mozilla,thunderbird}-beagle.dirs.
    + Fixed paths to point to usr/lib/{firefox,thunderbird}

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
 
3
 * contributor license agreements.  See the NOTICE file distributed with
 
4
 * this work for additional information regarding copyright ownership.
 
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
6
 * (the "License"); you may not use this file except in compliance with
 
7
 * the License.  You may obtain a copy of the License at
 
8
 * 
 
9
 * http://www.apache.org/licenses/LICENSE-2.0
 
10
 * 
 
11
 * Unless required by applicable law or agreed to in writing, software
 
12
 * distributed under the License is distributed on an "AS IS" BASIS,
 
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
 * See the License for the specific language governing permissions and
 
15
 * limitations under the License.
 
16
 */
 
17
 
 
18
using System;
 
19
 
 
20
namespace Lucene.Net.Store
 
21
{
 
22
        
 
23
        /// <summary> Base class for Locking implementation.  {@link Directory} uses
 
24
        /// instances of this class to implement locking.
 
25
        /// </summary>
 
26
        
 
27
        public abstract class LockFactory
 
28
        {
 
29
                
 
30
                protected internal System.String lockPrefix = "";
 
31
                
 
32
                /// <summary> Set the prefix in use for all locks created in this
 
33
                /// LockFactory.  This is normally called once, when a
 
34
                /// Directory gets this LockFactory instance.  However, you
 
35
                /// can also call this (after this instance is assigned to
 
36
                /// a Directory) to override the prefix in use.  This
 
37
                /// is helpful if you're running Lucene on machines that
 
38
                /// have different mount points for the same shared
 
39
                /// directory.
 
40
                /// </summary>
 
41
                public virtual void  SetLockPrefix(System.String lockPrefix)
 
42
                {
 
43
                        this.lockPrefix = lockPrefix;
 
44
                }
 
45
                
 
46
                /// <summary> Get the prefix in use for all locks created in this LockFactory.</summary>
 
47
                public virtual System.String GetLockPrefix()
 
48
                {
 
49
                        return this.lockPrefix;
 
50
                }
 
51
                
 
52
                /// <summary> Return a new Lock instance identified by lockName.</summary>
 
53
                /// <param name="lockName">name of the lock to be created.
 
54
                /// </param>
 
55
                public abstract Lock MakeLock(System.String lockName);
 
56
                
 
57
                /// <summary> Attempt to clear (forcefully unlock and remove) the
 
58
                /// specified lock.  Only call this at a time when you are
 
59
                /// certain this lock is no longer in use.
 
60
                /// </summary>
 
61
                /// <param name="lockName">name of the lock to be cleared.
 
62
                /// </param>
 
63
                abstract public void  ClearLock(System.String lockName);
 
64
        }
 
65
}
 
 
b'\\ No newline at end of file'