@Override protected void validateNodeBeforeAcceptingRequests( final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> checks) throws NodeValidationException { BootstrapChecks.check(context, boundTransportAddress, checks); }
/** * Executes the bootstrap checks if the node has the transport protocol bound to a non-loopback interface. If the system property * {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether or not * the transport protocol is bound to a non-loopback interface. * * @param context the current node bootstrap context * @param boundTransportAddress the node network bindings */ static void check(final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> additionalChecks) throws NodeValidationException { final List<BootstrapCheck> builtInChecks = checks(); final List<BootstrapCheck> combinedChecks = new ArrayList<>(builtInChecks); combinedChecks.addAll(additionalChecks); check( context, enforceLimits(boundTransportAddress, DiscoveryModule.DISCOVERY_TYPE_SETTING.get(context.settings())), Collections.unmodifiableList(combinedChecks)); }
/** * Executes the bootstrap checks if the node has the transport protocol bound to a non-loopback interface. If the system property * {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether or not * the transport protocol is bound to a non-loopback interface. * * @param context the current node bootstrap context * @param boundTransportAddress the node network bindings */ static void check(final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> additionalChecks) throws NodeValidationException { final List<BootstrapCheck> builtInChecks = checks(); final List<BootstrapCheck> combinedChecks = new ArrayList<>(builtInChecks); combinedChecks.addAll(additionalChecks); check( context, enforceLimits(boundTransportAddress, DiscoveryModule.DISCOVERY_TYPE_SETTING.get(context.settings)), Collections.unmodifiableList(combinedChecks)); }
/** * Executes the provided checks and fails the node if {@code enforceLimits} is {@code true}, otherwise logs warnings. If the system * property {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether * or not the transport protocol is bound to a non-loopback interface. * * @param context the current node boostrap context * @param enforceLimits {@code true} if the checks should be enforced or otherwise warned * @param checks the checks to execute */ static void check( final BootstrapContext context, final boolean enforceLimits, final List<BootstrapCheck> checks) throws NodeValidationException { check(context, enforceLimits, checks, LogManager.getLogger(BootstrapChecks.class)); }
/** * Executes the bootstrap checks if the node has the transport protocol bound to a non-loopback interface. If the system property * {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether or not * the transport protocol is bound to a non-loopback interface. * * @param context the current node bootstrap context * @param boundTransportAddress the node network bindings */ static void check(final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> additionalChecks) throws NodeValidationException { final List<BootstrapCheck> builtInChecks = checks(); final List<BootstrapCheck> combinedChecks = new ArrayList<>(builtInChecks); combinedChecks.addAll(additionalChecks); check( context, enforceLimits(boundTransportAddress, DiscoveryModule.DISCOVERY_TYPE_SETTING.get(context.settings)), Collections.unmodifiableList(combinedChecks), Node.NODE_NAME_SETTING.get(context.settings)); }
@Override protected void validateNodeBeforeAcceptingRequests( final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> checks) throws NodeValidationException { BootstrapChecks.check(context, boundTransportAddress, checks); }
/** * Executes the bootstrap checks if the node has the transport protocol bound to a non-loopback interface. If the system property * {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether or not * the transport protocol is bound to a non-loopback interface. * * @param settings the current node settings * @param boundTransportAddress the node network bindings */ static void check(final Settings settings, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> additionalChecks) throws NodeValidationException { final List<BootstrapCheck> builtInChecks = checks(settings); final List<BootstrapCheck> combinedChecks = new ArrayList<>(builtInChecks); combinedChecks.addAll(additionalChecks); check( enforceLimits(boundTransportAddress, DiscoveryModule.DISCOVERY_TYPE_SETTING.get(settings)), Collections.unmodifiableList(combinedChecks), Node.NODE_NAME_SETTING.get(settings)); }
@Override protected void validateNodeBeforeAcceptingRequests( final Settings settings, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> checks) throws NodeValidationException { BootstrapChecks.check(settings, boundTransportAddress, checks); } };
@Override protected void validateNodeBeforeAcceptingRequests( final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> checks) throws NodeValidationException { BootstrapChecks.check(context, boundTransportAddress, checks); } };
/** * Executes the provided checks and fails the node if {@code enforceLimits} is {@code true}, otherwise logs warnings. If the system * property {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether * or not the transport protocol is bound to a non-loopback interface. * * @param enforceLimits {@code true} if the checks should be enforced or otherwise warned * @param checks the checks to execute * @param nodeName the node name to be used as a logging prefix */ static void check( final boolean enforceLimits, final List<BootstrapCheck> checks, final String nodeName) throws NodeValidationException { check(enforceLimits, checks, Loggers.getLogger(BootstrapChecks.class, nodeName)); }
/** * Executes the provided checks and fails the node if {@code enforceLimits} is {@code true}, otherwise logs warnings. If the system * property {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether * or not the transport protocol is bound to a non-loopback interface. * * @param context the current node boostrap context * @param enforceLimits {@code true} if the checks should be enforced or otherwise warned * @param checks the checks to execute */ static void check( final BootstrapContext context, final boolean enforceLimits, final List<BootstrapCheck> checks) throws NodeValidationException { check(context, enforceLimits, checks, Loggers.getLogger(BootstrapChecks.class)); }
/** * Executes the provided checks and fails the node if {@code enforceLimits} is {@code true}, otherwise logs warnings. If the system * property {@code es.enforce.bootstrap.checks} is set to {@code true} then the bootstrap checks will be enforced regardless of whether * or not the transport protocol is bound to a non-loopback interface. * * @param context the current node boostrap context * @param enforceLimits {@code true} if the checks should be enforced or otherwise warned * @param checks the checks to execute * @param nodeName the node name to be used as a logging prefix */ static void check( final BootstrapContext context, final boolean enforceLimits, final List<BootstrapCheck> checks, final String nodeName) throws NodeValidationException { check(context, enforceLimits, checks, Loggers.getLogger(BootstrapChecks.class, nodeName)); }