Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2009 eXo Platform SAS.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
   * the License, or (at your option) any later version.
   *
   * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.exoplatform.services.jcr.ext.backup;
 
 
 import java.net.URL;
Created by The eXo Platform SARL .

Author(s):
Gennady Azarenkov
Version:
$Id: $
 
 
 public interface BackupJob extends Runnable
 {

   
The full backup type of job.
 
    public static final int FULL = 1;

   
THe incremental backup type of job.
 
    public static final int INCREMENTAL = 2;

   
The STARTING state of job.
 
    public static final int STARTING = 0;

   
The WAITING state of job..
 
    public static final int WAITING = 1;

   
The WORKING state of job.
 
    public static final int WORKING = 2;

   
The FINISHED state of job..
 
    public static final int FINISHED = 4;

   
Getting the type of job.

Returns:
int return the type of job
 
    int getType();

   
Getting state of job.

Returns:
int return the state of job
 
    int getState();

   
Getting the id of job.

Returns:
int return id
 
    int getId();

   
Getting storage URL.

Returns:
URL return the storage URL
Throws:
BackupOperationException will be generate the exception BackupOperationException
 
    URL getStorageURL() throws BackupOperationException;

   
Call stop of job.
   void stop();

   
Initialize.

Parameters:
repository ManageableRepository, the manageable repository
workspaceName String, the workspace name
config BackupConfig, the backup config
timeStamp Calendar, the time stamp
   void init(ManageableRepository repositoryString workspaceNameBackupConfig configCalendar timeStamp);

   
Adding listener.

Parameters:
listener BackupJobListener, the job listener
   void addListener(BackupJobListener listener);

   
Remove listener.

Parameters:
listener BackupJobListener, the job listener
   void removeListener(BackupJobListener listener);
New to GrepCode? Check out our FAQ X