Discovery
Extends:
API that handles the lifecycle for updating and maintaing local copies of a Discovery
Static Member Summary
Static Public Members | ||
public static get |
interfaces: Array: * normalizes the |
Constructor Summary
Public Constructor | ||
public |
constructor(settings: Object) initializes and resolves to an Advertiser instance |
Member Summary
Public Members | ||
public |
|
|
public get |
attributes: Object: * returns a snapshot of the current Instance |
|
public get |
returns the location where an Instance's id file should reside |
Method Summary
Public Methods | ||
public |
main loop that generates heartbeats |
|
public |
Determines if it has id file. |
|
public |
heartbeat to let other Services know that this one is alive |
|
public |
kill() kills the Advertiser instance and makes sure we don't spawn a ZOMBIEEEEE |
|
public |
generates the Instance context |
|
public |
fetches or creates a new ID for the Instance |
|
public |
saves the id to the local filesystem to survive Instance restarts |
Inherited Summary
From class Expressive | ||
public static |
create(): * creates a new inherited instance |
|
public |
debug: * |
|
public |
expressive emit |
|
public |
when(): * expressive once |
From class Table | ||
public static get |
table: Thinky:Table: * returns a reference to the raw Table object |
|
public static get |
tableName: * returns what the table name is, useful for raw |
|
public static |
createModel(config: Array): * creates a Thinky model |
|
public static |
drop(): * drops this table on the database, primarily used to clean up after tests |
|
public static |
empty(): * empties all rows from the table |
|
public static |
creates a new row on this Table |
|
public |
table: * |
Static Public Members
Public Constructors
public constructor(settings: Object) source
initializes and resolves to an Advertiser instance
Override:
Table#constructorParams:
Name | Type | Attribute | Description |
settings | Object | The settings |