Package org.jumpmind.symmetric.util
Class DefaultNodeIdCreator
java.lang.Object
org.jumpmind.symmetric.util.DefaultNodeIdCreator
- All Implemented Interfaces:
IBuiltInExtensionPoint
,IExtensionPoint
,INodeIdCreator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Logger
protected INodeService
protected IParameterService
protected ISecurityService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNodeIdCreator
(IParameterService parameterService, INodeService nodeService, ISecurityService securityService) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildNodeId
(INodeService nodeService, Node node) protected String
evaluateScript
(Node node, String remoteHost, String remoteAddress) generateNodeId
(Node node, String remoteHost, String remoteAddress) Determine node ID for the node that is about to be created and opened for registration.generatePassword
(Node node) Generate a password to use when opening registrationselectNodeId
(Node node, String remoteHost, String remoteAddress) Determine the node ID to use, given the node that is requesting to register, by trying to find its record with an open registration.
-
Field Details
-
log
protected final org.slf4j.Logger log -
parameterService
-
nodeService
-
securityService
-
-
Constructor Details
-
DefaultNodeIdCreator
public DefaultNodeIdCreator(IParameterService parameterService, INodeService nodeService, ISecurityService securityService)
-
-
Method Details
-
selectNodeId
Determine the node ID to use, given the node that is requesting to register, by trying to find its record with an open registration.- Specified by:
selectNodeId
in interfaceINodeIdCreator
-
generateNodeId
Determine node ID for the node that is about to be created and opened for registration. Return an existing node to re-open its registration.- Specified by:
generateNodeId
in interfaceINodeIdCreator
-
buildNodeId
-
generatePassword
Description copied from interface:INodeIdCreator
Generate a password to use when opening registration- Specified by:
generatePassword
in interfaceINodeIdCreator
-
evaluateScript
-