Package com.stimulus.archiva.domain

Examples of com.stimulus.archiva.domain.Volumes


      EmailID emailID = EmailID.getEmailID(activeVolume, message);
      message.setEmailID(emailID)
  }
 
  protected static void archive(Principal principal, Email message,boolean retry) throws Exception {
      Volumes vols = ConfigurationService.getConfig().getVolumes();
      assignEmailID(message,vols);
      try {
           if (messageStore.insertMessage(message.getEmailID(),message)) {
             vols.touchActiveVolume();
             messageIndex.indexMessage(message.getEmailID());
           }
         } catch (Exception e) {  
        if (e.getCause() instanceof IOException && e.getMessage().contains("space")) {
          logger.error("must close volume (out of disk space)",e);
View Full Code Here


    public void start() {};
   
    public void end(int failed, int success, int total) {};
  
    public boolean recover(InputStream is, String filename) {
      Volumes vols = ConfigurationService.getConfig().getVolumes();
      EmailID emailID = EmailID.getEmailID(null,filename);
      Email email = null;
      try {
       email = new Email(emailID,is);
        assignEmailID(email,vols);
          messageStore.insertMessage(email.getEmailID(), email);
        vols.touchActiveVolume();
        messageIndex.indexMessage(email.getEmailID());
        audit.info("recovered email {"+email+"}");
      } catch (Exception e) {
        email = new Email();
        email.setEmailID(emailID);
View Full Code Here

TOP

Related Classes of com.stimulus.archiva.domain.Volumes

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.