# Class: ServiceExporter

## vertx-service-discovery-js/service_exporter~ ServiceExporter

#### new ServiceExporter()

The service exporter allows integrate other discovery technologies with the Vert.x service discovery. It maps

Source:
  - vertx-service-discovery-js/service_exporter.js, line 32

### Methods

#### close(closeHandler)

Close the exporter

##### Parameters:

Name | Type | Description
--- | --- | ---
`closeHandler` | function | the handle to be notified when exporter is closed, may be `null`

Source:
  - vertx-service-discovery-js/service_exporter.js, line 100

#### init(vertx, publisher, configuration, future)

Starts the exporter.

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | the vertx instance
`publisher` | ServicePublisher | the service discovery instance
`configuration` | Object | the bridge configuration if any
`future` | Future | a future on which the bridge must report the completion of the starting

Source:
  - vertx-service-discovery-js/service_exporter.js, line 46

#### onPublish(record)

Notify a new record has been published, the record's registration can be used to uniquely identify the record

##### Parameters:

Name | Type | Description
--- | --- | ---
`record` | Object | the record

Source:
  - vertx-service-discovery-js/service_exporter.js, line 60

#### onUnpublish(id)

Notify an existing record has been removed

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` | string | the record registration id

Source:
  - vertx-service-discovery-js/service_exporter.js, line 87

#### onUpdate(record)

Notify an existing record has been updated, the record's registration can be used to uniquely identify the record

##### Parameters:

Name | Type | Description
--- | --- | ---
`record` | Object | the record

Source:
  - vertx-service-discovery-js/service_exporter.js, line 74