private static StartupMetadata load ( DbClient dbClient ) { try ( DbSession dbSession = dbClient . openSession ( false ) ) { String startedAt = selectProperty ( dbClient , dbSession , SERVER_STARTTIME ) ; return new StartupMetadata ( DateUtils . parseDateTime ( startedAt ) . getTime ( ) ) ; } }
Load from database