Package railo.commons.lock

Examples of railo.commons.lock.Lock


     */
    protected abstract void _map(Resource path) throws SearchException ;

    @Override
    public final void repair() throws SearchException  {
      Lock l = lock();
      try {
        _repair();
        changeLastUpdate();
    }
    finally {
View Full Code Here


    // FUTURE add this to interface
    public IndexResult index(PageContext pc, String key, short type, String urlpath, String title, String body, String language,
            String[] extensions, String query, boolean recurse,String categoryTree, String[] categories, long timeout,
            String custom1, String custom2, String custom3, String custom4) throws PageException, MalformedURLException, SearchException {
        language=SearchUtil.translateLanguage(language);
        Lock l = lock();
      try {
        SearchIndex si = new SearchIndex(title,key,type,query,extensions,language,urlpath,categoryTree,categories,
            custom1,custom2,custom3,custom4);
        //String id=si.getId();
        IndexResult ir=IndexResultImpl.EMPTY;
View Full Code Here

    return language;
  }
   
  @Override
  public final IndexResult purge() throws SearchException {
    Lock l = lock();
  try {
        indexes.clear();
        IndexResult ir=_purge();
        searchEngine.purgeCollection(this);
        changeLastUpdate();
View Full Code Here

   */
  protected abstract IndexResult _purge() throws SearchException;

    @Override
    public final IndexResult delete() throws SearchException {
      Lock l = lock();
      try {
      IndexResult ir=_delete();
      searchEngine.removeCollection(this);
      return ir;
    }
View Full Code Here

        AddionalAttrs aa = AddionalAttrs.getAddionlAttrs();
        boolean hasRowHandling=false;
        aa.setStartrow(startrow);
        if(maxrow!=-1)aa.setMaxrows(maxrow-len);
       
        Lock l = lock();
        try {
          records = _search(data, criteria,language,type,categoryTree,categories);
        }
        finally {
          unlock(l);
View Full Code Here

    // FUTURE add this to interface
    public IndexResult index(PageContext pc, String key, short type, String urlpath, String title, String body, String language,
            String[] extensions, String query, boolean recurse,String categoryTree, String[] categories, long timeout,
            String custom1, String custom2, String custom3, String custom4) throws PageException, MalformedURLException, SearchException {
        language=SearchUtil.translateLanguage(language);
        Lock l = lock();
      try {
        SearchIndex si = new SearchIndex(title,key,type,query,extensions,language,urlpath,categoryTree,categories,custom1,custom2,custom3,custom4);
        String id=si.getId();
        IndexResult ir=IndexResultImpl.EMPTY;
        if(type==SearchIndex.TYPE_FILE){
View Full Code Here

    return language;
  }
   
  @Override
  public final IndexResult purge() throws SearchException {
    Lock l = lock();
  try {
        indexes.clear();
        IndexResult ir=_purge();
        searchEngine.purgeCollection(this);
        changeLastUpdate();
View Full Code Here

   */
  protected abstract IndexResult _purge() throws SearchException;

    @Override
    public final IndexResult delete() throws SearchException {
      Lock l = lock();
      try {
      IndexResult ir=_delete();
      searchEngine.removeCollection(this);
      return ir;
    }
View Full Code Here

        AddionalAttrs aa = AddionalAttrs.getAddionlAttrs();
        boolean hasRowHandling=false;
        aa.setStartrow(startrow);
        if(maxrow!=-1)aa.setMaxrows(maxrow-len);
       
        Lock l = lock();
        try {
          records = _search(data, criteria,language,type,categoryTree,categories);
        }
        finally {
          unlock(l);
View Full Code Here

TOP

Related Classes of railo.commons.lock.Lock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.