Class SystemControllerImpl
java.lang.Object
uk.ac.manchester.spinnaker.alloc.web.SystemControllerImpl
- All Implemented Interfaces:
- SystemController
@Controller("mvc.mainUI")
public class SystemControllerImpl
extends Object
implements SystemController
The main web interface controller.
- Author:
- Donal Fellows
- 
Field SummaryFields inherited from interface uk.ac.manchester.spinnaker.alloc.web.SystemControllerROOT_PATH, USER_MAY_CHANGE_PASSWORD, USER_PASSWORD_CHANGE_ATTR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondestroyJob(int id, String reason) Delete a job.getJobInfo(int id) Get the view for some job details.Get the view for the general job list.getMachineInfo(String machine) Get the view for some machine details.Get the view for the general machine list.getPasswordChangeForm(Principal principal) Get the view and model for the password change form.index()Get the view for the main page of the service.listProcesses(int id, int x, int y) Get job processes on a chip.login()Get the login form page.performLogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Log the user out.postPasswordChangeForm(PasswordChangeRecord user, Principal principal) Carry out a password change.powerJob(int id, boolean power) Set the power of a job.
- 
Constructor Details- 
SystemControllerImplpublic SystemControllerImpl()
 
- 
- 
Method Details- 
indexDescription copied from interface:SystemControllerGet the view for the main page of the service.- Specified by:
- indexin interface- SystemController
- Returns:
- View (index.jsp)
 
- 
loginDescription copied from interface:SystemControllerGet the login form page. Note that this must be a resource that can be accessed without authentication; it is part of the auth flow!- Specified by:
- loginin interface- SystemController
- Returns:
- View (login.jsp)
 
- 
getPasswordChangeFormDescription copied from interface:SystemControllerGet the view and model for the password change form.- Specified by:
- getPasswordChangeFormin interface- SystemController
- Parameters:
- principal- Who is changing their password.
- Returns:
- View (password.jsp) and model (based onPasswordChangeRecord)
 
- 
postPasswordChangeFormDescription copied from interface:SystemControllerCarry out a password change.- Specified by:
- postPasswordChangeFormin interface- SystemController
- Parameters:
- user- The description of what to change.
- principal- Who is changing their password.
- Returns:
- View (password.jsp) and model (based onPasswordChangeRecord)
 
- 
performLogoutpublic String performLogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:SystemControllerLog the user out.- Specified by:
- performLogoutin interface- SystemController
- Parameters:
- request- What request was made
- response- What response to build
- Returns:
- Redirect to the login page
- See Also:
 
- 
getMachineListDescription copied from interface:SystemControllerGet the view for the general machine list.- Specified by:
- getMachineListin interface- SystemController
- Returns:
- View (listmachines.jsp) and model (based onMachineListEntryRecord)
 
- 
getMachineInfoDescription copied from interface:SystemControllerGet the view for some machine details.- Specified by:
- getMachineInfoin interface- SystemController
- Parameters:
- machine- Which machine is being asked for
- Returns:
- View (machinedetails.jsp) and model (based onMachineDescription)
 
- 
getJobListDescription copied from interface:SystemControllerGet the view for the general job list.- Specified by:
- getJobListin interface- SystemController
- Returns:
- View (listjobs.jsp) and model (based onJobListEntryRecord)
 
- 
getJobInfoDescription copied from interface:SystemControllerGet the view for some job details.- Specified by:
- getJobInfoin interface- SystemController
- Parameters:
- id- Which job is being asked for
- Returns:
- View (jobdetails.jsp) and model (based onJobDescription)
 
- 
destroyJobDescription copied from interface:SystemControllerDelete a job.- Specified by:
- destroyJobin interface- SystemController
- Parameters:
- id- Which job is being deleted
- reason- Why the job is being deleted
- Returns:
- View (jobdetails.jsp) and model (based onJobDescription)
 
- 
powerJobDescription copied from interface:SystemControllerSet the power of a job.- Specified by:
- powerJobin interface- SystemController
- Parameters:
- id- Which job is being deleted
- power- Whether to power on or off
- Returns:
- View (jobdetails.jsp) and model (based onJobDescription)
 
- 
listProcessesDescription copied from interface:SystemControllerGet job processes on a chip.- Specified by:
- listProcessesin interface- SystemController
- Parameters:
- id- Which job is being asked for
- x- The x coordinate of the chip
- y- The y coordinate of the chip
- Returns:
- List of Processes. Note all cores are returned though there may be no process on some of them and some may be dead cores.
 
 
-