Change-Id: I18a186a9017818a3464dd7e1f3f637285da4398c
Signed-off-by: Tuan Nguyen <hoang.su.tk@gmail.com>
shutdownFlag int32
shutdownCnt int32
disableAlarmClient bool
shutdownFlag int32
shutdownCnt int32
disableAlarmClient bool
)
var startTime time.Time
)
var startTime time.Time
return Rmr != nil && Rmr.IsReady() && SdlStorage != nil && SdlStorage.IsReady()
}
return Rmr != nil && Rmr.IsReady() && SdlStorage != nil && SdlStorage.IsReady()
}
+func IsRegistered() bool {
+ return isRegistered
+}
+
func SetReadyCB(cb ReadyCB, params interface{}) {
readyCb = cb
readyCbParams = params
func SetReadyCB(cb ReadyCB, params interface{}) {
readyCb = cb
readyCbParams = params
if shutdownCb != nil {
shutdownCb()
}
if shutdownCb != nil {
shutdownCb()
}
Logger.Debug("Application='%s' is now up and ready, continue with registration ...", viper.GetString("name"))
if err := doRegister(); err == nil {
Logger.Debug("Application='%s' is now up and ready, continue with registration ...", viper.GetString("name"))
if err := doRegister(); err == nil {
Logger.Info("Registration done, proceeding with startup ...")
break
}
Logger.Info("Registration done, proceeding with startup ...")
break
}