code: public void onChangeMode(IndexerIoMode mode)
     {
        try
        {
           switch (mode)
           {
              case READ_ONLY :
                 setReadOnly();
                 break;
              case READ_WRITE :
                 setReadWrite();
                 break;
           }
        }
        catch (IOException e)
        {
           LOG.error("An error occurs while changing of mode " + mode, e);
        }
     }
docs: {@inheritDoc}