Search in sources :

Example 1 with EntityState

use of com.metabroadcast.columbus.telescope.api.EntityState in project atlas-deer by atlasapi.

the class ColumbusTelescopeReporter method reportSuccessfulMigration.

public void reportSuccessfulMigration(Content content) {
    EntityState entityState = EntityState.builder().withAtlasId(codec.encode(content.getId().toBigInteger())).withRaw(getContentJsonString(content)).withRawMime(MimeType.APPLICATION_JSON.toString()).build();
    Event event = createEvent(entityState, Event.Status.SUCCESS);
    telescopeClient.createEvent(event);
}
Also used : Event(com.metabroadcast.columbus.telescope.api.Event) EntityState(com.metabroadcast.columbus.telescope.api.EntityState)

Aggregations

EntityState (com.metabroadcast.columbus.telescope.api.EntityState)1 Event (com.metabroadcast.columbus.telescope.api.Event)1