Search in sources :

Example 1 with MapInfo

use of org.onosproject.store.service.MapInfo in project onos by opennetworkinglab.

the class MapsListCommand method doExecute.

@Override
protected void doExecute() {
    StorageAdminService storageAdminService = get(StorageAdminService.class);
    List<MapInfo> mapInfo = storageAdminService.getMapInfo();
    if (outputJson()) {
        print("%s", json(mapInfo));
    } else {
        displayMaps(mapInfo);
    }
}
Also used : MapInfo(org.onosproject.store.service.MapInfo) StorageAdminService(org.onosproject.store.service.StorageAdminService)

Aggregations

MapInfo (org.onosproject.store.service.MapInfo)1 StorageAdminService (org.onosproject.store.service.StorageAdminService)1