Skip to content

Commit

Permalink
Store frameworkid string and deserialise it
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Westergaard Lassen authored and mwl committed Mar 21, 2016
1 parent bfef185 commit 084fcd1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public Optional<Protos.FrameworkID> getFrameworkID() {
if (value.length == 0) {
return Optional.empty();
}
return Optional.of(Protos.FrameworkID.newBuilder().setValue(new String(value)).build());
return Optional.of(Protos.FrameworkID.newBuilder().setValue(((String) SerializationUtils.deserialize(value))).build());
}

@EventListener
public void onFrameworkRegistered(FrameworkRegistreredEvent event) {
logger.debug("Received frameworkId=" + event.getFrameworkID().getValue());
frameworkId.set(event.getFrameworkID());
set("frameworkid", frameworkId.get());
set("frameworkid", frameworkId.get().getValue());
}

@EventListener
Expand Down

0 comments on commit 084fcd1

Please sign in to comment.