@ Override public Option < Protos . FrameworkID > getFrameworkID ( ) throws Exception { synchronized ( startStopLock ) { verifyIsRunning ( ) ; Option < Protos . FrameworkID > frameworkID ; byte [ ] value = frameworkIdInZooKeeper . getValue ( ) ; if ( value . length == 0 ) { frameworkID = Option . empty ( ) ; } else { frameworkID = Option . apply ( Protos . FrameworkID . newBuilder ( ) . setValue ( new String ( value , ConfigConstants . DEFAULT_CHARSET ) ) . build ( ) ) ; } return frameworkID ; } }
Get the persisted framework ID .