Search in sources :

Example 1 with LastUpdated

use of org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.mappingservice.rev150906.mapping.database.LastUpdated in project lispflowmapping by opendaylight.

the class DataStoreBackEnd method getLastUpdateTimestamp.

public Long getLastUpdateTimestamp() {
    LastUpdated lastUpdated = readTransaction(LAST_UPDATED, LogicalDatastoreType.OPERATIONAL);
    if (lastUpdated != null && lastUpdated.getLastUpdated() != null) {
        Long timestamp = lastUpdated.getLastUpdated();
        LOG.debug("MD-SAL: Retrieved last update timestamp from operational datastore: {}", new Date(timestamp).toString());
        return timestamp;
    } else {
        LOG.debug("MD-SAL: Couldn't retrieve last update timestamp from operational datastore");
        return null;
    }
}
Also used : LastUpdated(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.mappingservice.rev150906.mapping.database.LastUpdated) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 LastUpdated (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.mappingservice.rev150906.mapping.database.LastUpdated)1