Searched refs:backup (Results 1 - 23 of 23) sorted by relevance

/glassfish-3.1.2/admin/backup/src/main/java/com/sun/enterprise/backup/
H A DDirectoryFilter.java41 package com.sun.enterprise.backup;
H A DZipFilenameFilter.java47 package com.sun.enterprise.backup;
H A DBackupWarningException.java47 package com.sun.enterprise.backup;
H A DBackupManager.java41 package com.sun.enterprise.backup;
43 import com.sun.enterprise.backup.util.BackupUtils;
62 public final String backup() throws BackupException { method in class:BackupManager
70 mesg = StringHelper.get("backup-res.SuccessfulBackup",
80 // should do the recycling after the backup completes. I think it
81 // should be safe to recycle after a successful or unsuccessful backup
82 // (assuming a failed backup doesn't leave a corrupt ZIP file).
88 mesg += "\n" + StringHelper.get("backup-res.recycle",
94 mesg += StringHelper.get("backup-res.recycleDelete", f)
98 mesg += StringHelper.get("backup
[all...]
H A DBackupException.java48 package com.sun.enterprise.backup;
H A DConstants.java47 package com.sun.enterprise.backup;
55 final static String loggingResourceBundle = "com.sun.enterprise.backup.LocalStrings";
56 final static String exceptionResourceBundle = "/com/sun/enterprise/backup/LocalStrings.properties";
65 final static String PROPS_BACKUP_FILE = "backup.file";
71 final static String PROPS_FILENAME = "backup.properties";
H A DBackupRestoreManager.java41 package com.sun.enterprise.backup;
56 throw new BackupException("backup-res.InternalError",
71 throw new BackupException("backup-res.InternalError",
80 throw new BackupException("backup-res.NoDomainsDir",
H A DStringHelper.java41 package com.sun.enterprise.backup;
146 System.out.println("key=backup-res.BadProjectBackupDir, value =" + get("backup-res.BadProjectBackupDir"));
H A DZipStorage.java47 package com.sun.enterprise.backup;
67 throw new BackupException("backup-res.NoBackupRequest",
105 throw new BackupException("backup-res.ZipBackupError", zfe, zipName);
H A DBackupRequest.java47 package com.sun.enterprise.backup;
74 * Create an instance (used by backup-domain and list-backups)
H A DLoggerHelper.java41 package com.sun.enterprise.backup;
112 logger = Logger.getLogger("backup", Constants.loggingResourceBundle);
124 logger = Logger.getLogger("backup");
H A DRestoreManager.java41 package com.sun.enterprise.backup;
43 import com.sun.enterprise.backup.util.BackupUtils;
107 throw new BackupException("backup-res.CorruptBackupFile",
113 throw new BackupException("backup-res.UseForceOption");
129 // currently and, besides, they are specifying the backup-file
145 throw new BackupException("backup-res.NoDomainDir",
152 throw new BackupException("backup-res.NoBackupDir", backupDir);
191 throw new BackupException("backup-res.NoBackupFiles", dir);
204 * If an existing backup directory does not exist then there
243 throw new BackupException("backup
[all...]
H A DBackupFilenameManager.java47 package com.sun.enterprise.backup;
87 desc = domainName + " backup created on "
98 throw new BackupWarningException("backup-res.NoBackupFiles", dir);
104 * Returns backup files to be recycled, which are the oldest backups
108 * @return the oldest backup files over the specific limit.
128 * a list of all backup files found.
158 throw new BackupException("Latest version >= 100,000. Delete some backup files.");
217 System.out.println("Next backup file: " + fnew);
219 System.out.println("Latest backup file: " + fold);
H A DListManager.java47 package com.sun.enterprise.backup;
60 * It opens each backup zip file and examines the properties file for the
61 * information that was stored when the backup was performed.
85 * Find all backup zip files in a domain and return a String
86 * summarizing information about the backup.
99 // If a backup config was not provided then look for all zips
100 // including those in the backup config directories.
101 // If a backup config was provided then only look for zips in
102 // that backup config directory.
143 filename = strings.get("backup
[all...]
H A DStatus.java47 package com.sun.enterprise.backup;
81 return StringHelper.get("backup-res.CantWriteStatus", statusFile);
86 * @param file Either a zip file that contains backup.properties -- or
87 * backup.properties itself. terse is automatically set to true.
88 * @return a String summary of the backup
95 * @param file Either a zip file that contains backup.properties -- or
96 * backup.properties itself.
98 * @return a String summary of the backup
169 // Return the full path to the backup file.
216 * @param file Either a zip file that contains backup
[all...]
/glassfish-3.1.2/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/
H A DListBackupsCommand.java48 import com.sun.enterprise.backup.BackupException;
49 import com.sun.enterprise.backup.BackupWarningException;
50 import com.sun.enterprise.backup.ListManager;
H A DBackupDomainCommand.java48 import com.sun.enterprise.backup.BackupException;
49 import com.sun.enterprise.backup.BackupManager;
50 import com.sun.enterprise.backup.BackupWarningException;
68 @Service(name = "backup-domain")
145 logger.info(mgr.backup());
H A DRestoreDomainCommand.java51 import com.sun.enterprise.backup.BackupException;
52 import com.sun.enterprise.backup.RestoreManager;
53 import com.sun.enterprise.backup.BackupRequest;
54 import com.sun.enterprise.backup.BackupWarningException;
H A DBackupCommands.java48 import com.sun.enterprise.backup.BackupRequest;
/glassfish-3.1.2/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/
H A DImportSyncBundleCommand.java339 File backup = getBackupDir();
340 if (!f.renameTo(backup)) {
341 logger.warning(Strings.get("import.sync.bundle.backupInstanceDirFailed", f.getAbsolutePath(), backup.getAbsolutePath()));
360 File backup = getBackupDir();
361 if (backup != null && backup.isDirectory()) {
363 backup.renameTo(getServerDirs().getServerDir());
368 File backup = getBackupDir();
369 if (backup != null && backup
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/server/
H A DDomainXmlPersistence.java180 // backup the current file
181 File backup = new File(env.getConfigDirPath(), "domain.xml.bak");
182 if (destination.exists() && backup.exists() && !backup.delete()) {
184 "Could not delete previous backup file at {0}" , backup.getAbsolutePath());
189 if (destination.exists() && !FileUtils.renameFile(destination, backup)) {
191 "Could not rename {0} to {1}", destination.getAbsolutePath() , backup.getAbsolutePath());
199 // try to rename backup to domain.xml (so that at least something is there)
200 if (!FileUtils.renameFile(backup, destinatio
[all...]
/glassfish-3.1.2/admin/backup/src/main/java/com/sun/enterprise/backup/util/
H A DBackupUtils.java41 package com.sun.enterprise.backup.util;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/session/
H A DPersistentManagerBase.java295 * @param backup The number of seconds after their last accessed
298 public void setMaxIdleBackup (int backup) { argument
300 if (backup == this.maxIdleBackup)
303 this.maxIdleBackup = backup;

Completed in 30 milliseconds