Class ParameterService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractParameterService
org.jumpmind.symmetric.service.impl.ParameterService
- All Implemented Interfaces:
IParameterService
- See Also:
-
Field Summary
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractParameterService
databaseHasBeenInitialized, databaseHasBeenSetup, engineName, extensionService, externalId, log, nodeGroupId, parameters, registrationUrl, syncUrl, systemProperties
-
Constructor Summary
ConstructorsConstructorDescriptionParameterService
(IDatabasePlatform platform, ITypedPropertiesFactory factory, String tablePrefix) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteParameter
(String key) void
deleteParameter
(String externalId, String nodeGroupId, String key) void
deleteParameterWithUpdate
(String externalId, String nodeGroupId, String key) getDatabaseParameters
(String externalId, String nodeGroupId) getDatabaseParametersFor
(String paramKey) boolean
boolean
isRemoteNodeRegistrationServer
(Node remoteNode) protected TypedProperties
readParametersFromDatabase
(String sqlKey, Object... values) boolean
protected TypedProperties
protected void
void
saveParameter
(String key, Object paramValue, String lastUpdateBy) Save a parameter that applies toParameterConstants.ALL
external ids and all node groups.void
saveParameter
(String externalId, String nodeGroupId, String key, Object paramValue, String lastUpdateBy) void
saveParameters
(String externalId, String nodeGroupId, Map<String, Object> parameters, String lastUpdateBy) Methods inherited from class org.jumpmind.symmetric.service.impl.AbstractParameterService
getAllParameters, getDecimal, getDecimal, getEngineName, getExternalId, getInt, getInt, getLastTimeParameterWereCached, getLong, getLong, getNodeGroupId, getParameters, getRegistrationUrl, getReplacementValues, getString, getString, getSyncUrl, getTempDirectory, hasDatabaseBeenSetup, is, is, rereadDatabaseParameters, rereadParameters, setDatabaseHasBeenInitialized, setDatabaseHasBeenSetup, setExtensionService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jumpmind.symmetric.service.IParameterService
getAllParameters, getDecimal, getDecimal, getEngineName, getExternalId, getInt, getInt, getLastTimeParameterWereCached, getLong, getLong, getNodeGroupId, getRegistrationUrl, getReplacementValues, getString, getString, getSyncUrl, getTempDirectory, hasDatabaseBeenSetup, is, is, rereadParameters
-
Constructor Details
-
ParameterService
public ParameterService(IDatabasePlatform platform, ITypedPropertiesFactory factory, String tablePrefix)
-
-
Method Details
-
getTablePrefix
- Specified by:
getTablePrefix
in interfaceIParameterService
-
refreshFromDatabase
public boolean refreshFromDatabase()- Specified by:
refreshFromDatabase
in interfaceIParameterService
-
saveParameter
Save a parameter that applies toParameterConstants.ALL
external ids and all node groups.- Specified by:
saveParameter
in interfaceIParameterService
-
saveParameter
public void saveParameter(String externalId, String nodeGroupId, String key, Object paramValue, String lastUpdateBy) - Specified by:
saveParameter
in interfaceIParameterService
-
deleteParameter
- Specified by:
deleteParameter
in interfaceIParameterService
-
deleteParameter
- Specified by:
deleteParameter
in interfaceIParameterService
-
deleteParameterWithUpdate
- Specified by:
deleteParameterWithUpdate
in interfaceIParameterService
-
deleteAllParameters
public void deleteAllParameters()- Specified by:
deleteAllParameters
in interfaceIParameterService
-
saveParameters
public void saveParameters(String externalId, String nodeGroupId, Map<String, Object> parameters, String lastUpdateBy) - Specified by:
saveParameters
in interfaceIParameterService
-
readParametersFromDatabase
-
isRegistrationServer
public boolean isRegistrationServer()- Specified by:
isRegistrationServer
in interfaceIParameterService
-
isRemoteNodeRegistrationServer
- Specified by:
isRemoteNodeRegistrationServer
in interfaceIParameterService
-
rereadApplicationParameters
- Specified by:
rereadApplicationParameters
in classAbstractParameterService
-
rereadOfflineNodeParameters
protected void rereadOfflineNodeParameters() -
getDatabaseParametersForAll
- Specified by:
getDatabaseParametersForAll
in interfaceIParameterService
-
getDatabaseParametersFor
- Specified by:
getDatabaseParametersFor
in interfaceIParameterService
-
getDatabaseParameters
- Specified by:
getDatabaseParameters
in interfaceIParameterService
- Specified by:
getDatabaseParameters
in classAbstractParameterService
-
getOfflineNodeParameters
- Specified by:
getOfflineNodeParameters
in interfaceIParameterService
-