Interface SpallocAPI.Job
- All Superinterfaces:
SpallocAPI.Waitable
- Enclosing interface:
SpallocAPI
Describes a particular job known to the allocator.
- Author:
- Donal Fellows
-
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate the keepalive.voidMark the job as destroyed.voidforgetProxy(ProxyCore proxy) Note that a proxy has been dropped from the job and doesn't need to be remembered any more.getDepth()getDownloader(uk.ac.manchester.spinnaker.machine.tags.IPTag iptag) Get a Downloader protocol instance for an Ethernet within a job.getFastDataIn(uk.ac.manchester.spinnaker.machine.CoreLocation gathererCore, uk.ac.manchester.spinnaker.machine.tags.IPTag iptag) Get a FastDataIn protocol instance for an Ethernet within a job.intgetId()Optional<byte[]> getOwner()Optional<uk.ac.manchester.spinnaker.machine.ChipLocation> getState()Get a way to talk to the machine directly.getWidth()voidrememberProxy(ProxyCore proxy) Note that a proxy has been set up for the job.reportIssue(IssueReportRequest reqBody, Permit permit) Report an issue with some boards in the job.voidsetPower(boolean power) Power a job on or off.whereIs(@ValidX int x, @ValidY int y) Locate a board within the allocation.Methods inherited from interface SpallocAPI.Waitable
waitForChange
-
Method Details
-
getId
int getId()- Returns:
- Job ID
-
access
-
destroy
Mark the job as destroyed. To do this to an already destroyed job is a no-op.- Parameters:
reason- Why the job is being destroyed.
-
setPower
void setPower(boolean power) Power a job on or off.- Parameters:
power- True for on, False for off
-
getState
JobState getState()- Returns:
- The state of the job.
-
getStartTime
Instant getStartTime()- Returns:
- When the job started.
-
getKeepaliveHost
-
getKeepaliveTimestamp
Instant getKeepaliveTimestamp()- Returns:
- Time of the last keepalive event.
-
getOwner
-
getOriginalRequest
-
getFinishTime
-
getReason
-
getMachine
Optional<SpallocAPI.SubMachine> getMachine()- Returns:
- The (sub-)machine allocated to the job.
empty()if no resources allocated.
-
whereIs
Locate a board within the allocation.- Parameters:
x- The X coordinate of a chip on the board of interest.y- The Y coordinate of a chip on the board of interest.- Returns:
- The location, if resources allocated and the location maps.
empty()otherwise.
-
getRootChip
-
getWidth
-
getHeight
-
getDepth
-
reportIssue
Report an issue with some boards in the job.- Parameters:
reqBody- The description of the issue.permit- Who is actually reporting this?- Returns:
- The text part of the response
-
rememberProxy
Note that a proxy has been set up for the job. This allows the proxy to be closed when the job state changes. (The proxy may already be closed at that point.)- Parameters:
proxy- The proxy.
-
forgetProxy
Note that a proxy has been dropped from the job and doesn't need to be remembered any more.- Parameters:
proxy- The proxy.
-
getTransceiver
Get a way to talk to the machine directly. Note that it might not be booted...- Returns:
- The transceiver interface.
- Throws:
IOException- if there is an issue creating the transceiver.InterruptedException- if the operation is interrupted.SpinnmanException- if there is an issue speaking to the machine.
-
getFastDataIn
@MustBeClosed FastDataIn getFastDataIn(uk.ac.manchester.spinnaker.machine.CoreLocation gathererCore, uk.ac.manchester.spinnaker.machine.tags.IPTag iptag) throws ProcessException, IOException, InterruptedException Get a FastDataIn protocol instance for an Ethernet within a job.- Parameters:
gathererCore- The core that will do the gathering.iptag- The IPTag to use.- Returns:
- A FastDataIn instance.
- Throws:
ProcessException- if there is an issue setting up the tag.IOException- if there is an issue communicating.InterruptedException- if the operation is interrupted.
-
getDownloader
@MustBeClosed Downloader getDownloader(uk.ac.manchester.spinnaker.machine.tags.IPTag iptag) throws ProcessException, IOException, InterruptedException Get a Downloader protocol instance for an Ethernet within a job.- Parameters:
iptag- The IPTag to use.- Returns:
- A Downloader instance.
- Throws:
ProcessException- if there is an issue setting up the tag.IOException- if there is an issue communicating.InterruptedException- if the operation is interrupted.
-