Package com.soffid.iam.config
Class Config
- java.lang.Object
-
- com.soffid.iam.config.Config
-
public class Config extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOUPDATE_PROPERTY
static String
BACKUP_PASSWORD_PROPERTY
static String
BACKUPDB_PROPERTY
static String
BACKUPUSER_PROPERTY
static String
DB_PROPERTY
static String
JAVA_OPT_PROPERTY
static String
LOCAL_PORT_PROPERTY
static String
PASSWORD_PROPERTY
String
port
static String
PORT_PROPERTY
static String
ROL_PROPERTY
static String
SERVERLIST_PROPERTY
static String
SEYCON_SERVER_STANDBY_PROPERTY
static String
URL_PROPERTY
static String
USER_PROPERTY
-
Method Summary
-
-
-
Field Detail
-
PORT_PROPERTY
public static final String PORT_PROPERTY
- See Also:
- Constant Field Values
-
LOCAL_PORT_PROPERTY
public static final String LOCAL_PORT_PROPERTY
- See Also:
- Constant Field Values
-
DB_PROPERTY
public static final String DB_PROPERTY
- See Also:
- Constant Field Values
-
BACKUPDB_PROPERTY
public static final String BACKUPDB_PROPERTY
- See Also:
- Constant Field Values
-
BACKUP_PASSWORD_PROPERTY
public static final String BACKUP_PASSWORD_PROPERTY
- See Also:
- Constant Field Values
-
BACKUPUSER_PROPERTY
public static final String BACKUPUSER_PROPERTY
- See Also:
- Constant Field Values
-
PASSWORD_PROPERTY
public static final String PASSWORD_PROPERTY
- See Also:
- Constant Field Values
-
ROL_PROPERTY
public static final String ROL_PROPERTY
- See Also:
- Constant Field Values
-
JAVA_OPT_PROPERTY
public static final String JAVA_OPT_PROPERTY
- See Also:
- Constant Field Values
-
USER_PROPERTY
public static final String USER_PROPERTY
- See Also:
- Constant Field Values
-
SEYCON_SERVER_STANDBY_PROPERTY
public static final String SEYCON_SERVER_STANDBY_PROPERTY
- See Also:
- Constant Field Values
-
AUTOUPDATE_PROPERTY
public static final String AUTOUPDATE_PROPERTY
- See Also:
- Constant Field Values
-
SERVERLIST_PROPERTY
public static final String SERVERLIST_PROPERTY
- See Also:
- Constant Field Values
-
URL_PROPERTY
public static final String URL_PROPERTY
- See Also:
- Constant Field Values
-
port
public String port
-
-
Method Detail
-
updateFromServer
public void updateFromServer() throws IOException, InternalErrorException
- Throws:
IOException
InternalErrorException
-
mergeProperties
public void mergeProperties(Properties newProp) throws IOException
- Throws:
IOException
-
reload
public void reload() throws IOException, FileNotFoundException
- Throws:
IOException
FileNotFoundException
-
getServerService
public ServerService getServerService()
-
setServerService
public void setServerService(ServerService server)
-
getHomeDir
public File getHomeDir() throws IOException
- Throws:
IOException
-
getLogFile
public File getLogFile() throws IOException
- Throws:
IOException
-
getLogDir
public File getLogDir() throws IOException
- Throws:
IOException
-
getConfig
public static Config getConfig() throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
configureClient
public static void configureClient(String serverList, String port) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
getServerList
public String getServerList() throws RemoteException, InternalErrorException
-
getJVMOptions
public String getJVMOptions() throws RemoteException, InternalErrorException
-
setServerList
public void setServerList(String list) throws IOException
- Throws:
IOException
-
getRole
public String getRole()
-
isServer
public boolean isServer()
-
isAgent
public boolean isAgent()
-
isUpdateEnabled
public boolean isUpdateEnabled()
-
isStandbyServer
public boolean isStandbyServer() throws RemoteException, InternalErrorException
-
isActiveServer
public boolean isActiveServer() throws RemoteException, InternalErrorException
-
setRole
public void setRole(String list) throws IOException
- Throws:
IOException
-
getDbUser
public String getDbUser()
-
setDbUser
public void setDbUser(String list) throws IOException
- Throws:
IOException
-
getPassword
public Password getPassword()
-
setPassword
public void setPassword(Password list) throws IOException
- Throws:
IOException
-
getBackupDbUser
public String getBackupDbUser()
-
setBackupDbUser
public void setBackupDbUser(String list) throws IOException
- Throws:
IOException
-
getBackupPassword
public Password getBackupPassword()
-
setBackupPassword
public void setBackupPassword(Password list) throws IOException
- Throws:
IOException
-
getBackupDB
public String getBackupDB()
-
setBackupDB
public void setBackupDB(String list) throws IOException
- Throws:
IOException
-
getDB
public String getDB()
-
setDB
public void setDB(String list) throws IOException
- Throws:
IOException
-
getSSLKey
public Password getSSLKey()
-
setSSLKey
public void setSSLKey(Password list) throws IOException
- Throws:
IOException
-
getHostName
public String getHostName()
-
setHostName
public void setHostName(String list) throws IOException
- Throws:
IOException
-
getLocalPort
public String getLocalPort() throws RemoteException, InternalErrorException
-
getPort
public String getPort() throws RemoteException, InternalErrorException
-
setPort
public void setPort(String list) throws IOException
- Throws:
IOException
-
isRMIEnabled
public boolean isRMIEnabled()
-
isBroadcastListen
public boolean isBroadcastListen()
-
setRMIEnabled
public void setRMIEnabled(boolean enabled) throws IOException
- Throws:
IOException
-
isMainServer
public boolean isMainServer() throws FileNotFoundException, IOException, InternalErrorException
-
getURL
public URLManager getURL() throws FileNotFoundException, IOException, InternalErrorException
-
hasKeystore
public static boolean hasKeystore()
-
numberOfDamemonThreads
public int numberOfDamemonThreads() throws RemoteException, InternalErrorException
-
getSeyconServerHostList
public String[] getSeyconServerHostList() throws InternalErrorException, IOException
- Throws:
InternalErrorException
IOException
-
getRawSeyconServerList
public String getRawSeyconServerList() throws RemoteException, InternalErrorException
-
isAnyServer
public boolean isAnyServer() throws FileNotFoundException, IOException, InternalErrorException
-
getVersion
public String getVersion()
-
isDebug
public boolean isDebug()
-
canUpdateComponent
public boolean canUpdateComponent(String component)
-
getRequestId
public String getRequestId()
-
setRequestId
public void setRequestId(String value) throws IOException
- Throws:
IOException
-
setCustomProperty
public void setCustomProperty(String s, String v) throws IOException
- Throws:
IOException
-
-