Search in sources :

Example 1 with LastUpdatedBuilder

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

the class DataStoreBackEnd method saveLastUpdateTimestamp.

public void saveLastUpdateTimestamp() {
    Long timestamp = System.currentTimeMillis();
    LOG.debug("MD-SAL: Saving last update timestamp to operational datastore: {}", new Date(timestamp).toString());
    writePutTransaction(LAST_UPDATED, new LastUpdatedBuilder().setLastUpdated(timestamp).build(), LogicalDatastoreType.OPERATIONAL, "Couldn't save last update timestamp to operational datastore");
}
Also used : LastUpdatedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.mappingservice.rev150906.mapping.database.LastUpdatedBuilder) Date(java.util.Date)

Aggregations

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