class ConsulServiceRegistryManager extends AnyRef
This class manages the registration of service based on NodeConfiguration
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConsulServiceRegistryManager
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
ConsulServiceRegistryManager(consulUrl: String, serviceName: String, nodeConfiguration: NodeConfiguration, consulBuilder: Builder = Consul.builder(), healthCheckTimeout: Long = 30)
- consulUrl
URL of the consul agent
- serviceName
name of the service
- nodeConfiguration
node configuration providing meta-data about the instance of the service
- consulBuilder
optional builder for consul client that you can set up with additional options
- healthCheckTimeout
timeout (in seconds) used for service health check (default = 30s)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getPeers(): Set[NetworkPeer]
Get the information about services with the same name.
Get the information about services with the same name.
- returns
set of services as NetworkPeers for easier connectivity
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
register(): Unit
Register service in consul and manage the health checks
-
def
shutdown(): Unit
Stop thread pools, free resources.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregister(): Unit
Unregister service from consul, should be called only once
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )