/** * */ package vn.mobileid.fms.client; // TODO: Auto-generated Javadoc /** * The Class JCRConfig. * * @author ThaoTruong * @created Oct 8, 2018 */ public class JCRConfig { /** The host. */ private String host; /** The user ID. */ private String userID; /** The password. */ private String password; /** The max session. */ private int maxSession = Runtime.getRuntime().availableProcessors() + 1; /** The work space name. */ private String workSpaceName; /** The folder prefix. */ private String folderPrefix; /** The max file in folder. */ private int maxFileInFolder = 10000; private int timeoutUpload = 300; private int retryUpload = 3; private int timeoutDownload = 120; private int retryDownload = 3; private int timeoutSync = 5; //private String folderName; //private AtomicInteger counterFile; /** * Gets the host. * * @return the host */ public String getHost() { return host; } /** * Sets the host. * * @param host the new host */ public void setHost(String host) { this.host = host; } /** * Gets the max session. * * @return the max session */ public int getMaxSession() { return maxSession; } /** * Sets the max session. * * @param maxSession the new max session */ public void setMaxSession(int maxSession) { this.maxSession = maxSession; } /** * Gets the user ID. * * @return the user ID */ public String getUserID() { return userID; } /** * Sets the user ID. * * @param userID the new user ID */ public void setUserID(String userID) { this.userID = userID; } /** * Gets the password. * * @return the password */ public String getPassword() { return password; } /** * Sets the password. * * @param password the new password */ public void setPassword(String password) { this.password = password; } /** * Gets the work space name. * * @return the work space name */ public String getWorkSpaceName() { return workSpaceName; } /** * Sets the work space name. * * @param workSpaceName the new work space name */ public void setWorkSpaceName(String workSpaceName) { this.workSpaceName = workSpaceName; } /* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((host == null) ? 0 : host.hashCode()); result = prime * result + ((workSpaceName == null) ? 0 : workSpaceName.hashCode()); return result; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; JCRConfig other = (JCRConfig) obj; if (host == null) { if (other.host != null) return false; } else if (!host.equals(other.host)) return false; if (workSpaceName != other.workSpaceName) return false; return true; } /** * Gets the folder prefix. * * @return the folder prefix */ public String getFolderPrefix() { return folderPrefix; } /** * Sets the folder prefix. * * @param folderPrefix the new folder prefix */ public void setFolderPrefix(String folderPrefix) { this.folderPrefix = folderPrefix; } /** * Gets the max file in folder. * * @return the max file in folder */ public int getMaxFileInFolder() { return maxFileInFolder; } /** * Sets the max file in folder. * * @param maxFileInFolder the new max file in folder */ public void setMaxFileInFolder(int maxFileInFolder) { this.maxFileInFolder = maxFileInFolder; } public int getTimeoutUpload() { return timeoutUpload; } public void setTimeoutUpload(int timeoutUpload) { this.timeoutUpload = timeoutUpload; } public int getTimeoutDownload() { return timeoutDownload; } public void setTimeoutDownload(int timeoutDownload) { this.timeoutDownload = timeoutDownload; } public int getTimeoutSync() { return timeoutSync; } public void setTimeoutSync(int timeoutSync) { this.timeoutSync = timeoutSync; } public int getRetryUpload() { return retryUpload; } public void setRetryUpload(int retryUpload) { this.retryUpload = retryUpload; } public int getRetryDownload() { return retryDownload; } public void setRetryDownload(int retryDownload) { this.retryDownload = retryDownload; } /* public AtomicInteger getCounterFile() { return counterFile; } public void setCounterFile(AtomicInteger counterFile) { this.counterFile = counterFile; } public String getFolderName() { return folderName; } public void setFolderName(String folderName) { this.folderName = folderName; }*/ }