Class: Nonnative::TCPProbe
- Inherits:
-
Object
- Object
- Nonnative::TCPProbe
- Defined in:
- lib/nonnative/tcp_probe.rb
Overview
Probes a TCP readiness endpoint.
Defined Under Namespace
Classes: Target
Instance Method Summary collapse
-
#endpoint ⇒ String
Returns the checked endpoint for lifecycle diagnostics.
-
#initialize(readiness, timeout:) ⇒ TCPProbe
constructor
A new instance of TCPProbe.
-
#ready? ⇒ Boolean
Returns whether the TCP endpoint becomes connectable before the timeout elapses.
Constructor Details
Instance Method Details
#endpoint ⇒ String
Returns the checked endpoint for lifecycle diagnostics.
24 25 26 |
# File 'lib/nonnative/tcp_probe.rb', line 24 def endpoint port.endpoint end |
#ready? ⇒ Boolean
Returns whether the TCP endpoint becomes connectable before the timeout elapses.
17 18 19 |
# File 'lib/nonnative/tcp_probe.rb', line 17 def ready? port.open? end |