Interface DSEStorage
- All Superinterfaces:
DatabaseAPI
,ProxyAwareStorage
- All Known Implementing Classes:
SQLiteDataSpecStorage
public interface DSEStorage extends ProxyAwareStorage
The interface supported by the DSE part of the storage system.
- Author:
- Donal Fellows
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DSEStorage.Ethernet
A ethernet which allows data specifications to be loaded. -
Method Summary
Modifier and Type Method Description int
getAppId()
Get the system wide app id.Map<Integer,RegionInfo>
getRegionPointersAndContent(CoreLocation xyp)
Gets a map of region ids to pointers and content Maps only regions with a none zero size.LinkedHashMap<Integer,Integer>
getRegionSizes(CoreLocation xyp)
Get a map of region id to size for regions with a none zero size.MemoryLocation
getStartAddress(CoreLocation xyp)
Gets the start address for the metadata on this core.List<CoreLocation>
listCoresToLoad(DSEStorage.Ethernet ethernet, boolean loadSystemCores)
Get a list of all cores that need to be done for a particular ethernet.List<DSEStorage.Ethernet>
listEthernetsToLoad()
Get a list of all ethernets that need to have DSE loading done on them.void
setRegionPointer(CoreLocation xyp, int regionNum, int pointer)
Set the pointer for where to write the region data to.void
setStartAddress(CoreLocation xyp, MemoryLocation start)
Record the start address for the metadata on this core.Methods inherited from interface uk.ac.manchester.spinnaker.storage.ProxyAwareStorage
getProxyInformation
-
Method Details
-
listEthernetsToLoad
Get a list of all ethernets that need to have DSE loading done on them.- Returns:
- The list of ethernets.
- Throws:
StorageException
- If the database access fails.
-
listCoresToLoad
List<CoreLocation> listCoresToLoad(DSEStorage.Ethernet ethernet, boolean loadSystemCores) throws StorageExceptionGet a list of all cores that need to be done for a particular ethernet.- Parameters:
ethernet
- The ethernet we're loading onto.loadSystemCores
- Iftrue
, just list system cores. Iffalse
, just list application (non-system) cores.- Returns:
- The list of core locations.
- Throws:
StorageException
- If the database access fails.
-
getRegionSizes
Get a map of region id to size for regions with a none zero size.- Parameters:
xyp
- Coordinates to get the region sizes for- Returns:
- Sorted Map of Region number to size. For the regions with a none zero size
- Throws:
StorageException
- If the database access fails.
-
setStartAddress
Record the start address for the metadata on this core.- Parameters:
xyp
- Coordinates for the corestart
- Where the load metadata starts.- Throws:
StorageException
- If the database access fails.
-
getStartAddress
Gets the start address for the metadata on this core.- Parameters:
xyp
- Coordinates for the core- Returns:
- The location of the start of the metadata region
- Throws:
StorageException
- If the database access fails.
-
getAppId
Get the system wide app id.- Returns:
- the app id
- Throws:
StorageException
- If the database access fails.
-
setRegionPointer
Set the pointer for where to write the region data to.- Parameters:
xyp
- Coordinates for the coreregionNum
- region number for this pointerpointer
- start address for this regions metadata- Throws:
StorageException
- If the database access fails.
-
getRegionPointersAndContent
Gets a map of region ids to pointers and content Maps only regions with a none zero size. The content may be null is no data added- Parameters:
xyp
- Coordinates for the core- Returns:
- map of region number to object holding pointer and content
- Throws:
StorageException
- If the database access fails.
-