Class HostExecuteDataSpecification
java.lang.Object
uk.ac.manchester.spinnaker.front_end.BoardLocalSupport
uk.ac.manchester.spinnaker.front_end.dse.ExecuteDataSpecification
uk.ac.manchester.spinnaker.front_end.dse.HostExecuteDataSpecification
- All Implemented Interfaces:
AutoCloseable
public class HostExecuteDataSpecification extends ExecuteDataSpecification
Executes the host based data specification.
- Author:
- Donal Fellows
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.manchester.spinnaker.front_end.BoardLocalSupport
BoardLocalSupport.BoardLocal
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HostExecuteDataSpecification(TransceiverInterface txrx, Machine machine, DSEDatabaseEngine db)
Create a high-level DSE interface. -
Method Summary
Modifier and Type Method Description void
loadCores(boolean system)
Execute all application data specifications that a particular connection knows about, storing back in the database the information collected about those executions.Methods inherited from class uk.ac.manchester.spinnaker.front_end.dse.ExecuteDataSpecification
close, processTasksInParallel
-
Constructor Details
-
HostExecuteDataSpecification
@MustBeClosed public HostExecuteDataSpecification(TransceiverInterface txrx, Machine machine, DSEDatabaseEngine db) throws IOException, ProcessException, InterruptedException, StorageException, URISyntaxExceptionCreate a high-level DSE interface.- Parameters:
txrx
- The transceiver for talking to the SpiNNaker machine.machine
- The description of the SpiNNaker machine.db
- The DSE database.- Throws:
IOException
- If the transceiver can't talk to its sockets.ProcessException
- If SpiNNaker rejects a message.InterruptedException
- If communications are interrupted.URISyntaxException
- If the URI is not valid.StorageException
- If the database cannot be read.IllegalStateException
- If something really strange occurs with talking to the BMP; this constructor should not be doing that!
-
-
Method Details
-
loadCores
public void loadCores(boolean system) throws StorageException, IOException, ProcessException, InterruptedExceptionExecute all application data specifications that a particular connection knows about, storing back in the database the information collected about those executions.- Parameters:
system
- Iftrue
, loads system cores. Iffalse
, loads non-system (i.e., application) cores.- Throws:
StorageException
- If the database can't be talked to.IOException
- If the transceiver can't talk to its sockets.ProcessException
- If SpiNNaker rejects a message.InterruptedException
- If communications are interrupted.IllegalStateException
- If an unexpected exception occurs in any of the parallel tasks.
-