Package org.duracloud.syncui.controller
Class StatusController
- java.lang.Object
-
- org.duracloud.syncui.controller.StatusController
-
@Controller @RequestMapping("/status") public class StatusController extends ObjectA spring controller for status related functions.- Author:
- Daniel Bernstein
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTIVE_UPLOADS_KEYstatic StringSTATUS_MAPPING
-
Constructor Summary
Constructors Constructor Description StatusController(SyncProcessManager syncProcessManager, SyncConfigurationManager syncConfigurationManager, SyncOptimizeManager syncOptimizeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ViewclearErrors()SyncProcessErrorcurrentError()List<SyncSummary>failures()FileSizeFormatterfileSizeFormatter()Stringget(String statusTab, org.springframework.ui.Model model)List<MonitoredFile>monitoredFiles()org.springframework.web.servlet.Viewpause()List<File>queuedFiles()List<SyncSummary>recentlyCompleted()protected org.springframework.web.servlet.ViewredirectTo(String path)org.springframework.web.servlet.Viewrestart()org.springframework.web.servlet.Viewresume()org.springframework.web.servlet.Viewstart()org.springframework.web.servlet.Viewstop()SyncOptimizeManagersyncOptimizeManager()SyncProcessStatesyncProcessState()SyncProcessStatssyncProcessStats()
-
-
-
Field Detail
-
STATUS_MAPPING
public static final String STATUS_MAPPING
- See Also:
- Constant Field Values
-
ACTIVE_UPLOADS_KEY
public static final String ACTIVE_UPLOADS_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StatusController
@Autowired public StatusController(SyncProcessManager syncProcessManager, SyncConfigurationManager syncConfigurationManager, SyncOptimizeManager syncOptimizeManager)
-
-
Method Detail
-
get
@RequestMapping("") public String get(@RequestParam(required=false,defaultValue="queued") String statusTab, org.springframework.ui.Model model)
-
start
@RequestMapping(value="", method=POST, params="start") public org.springframework.web.servlet.View start()
-
redirectTo
protected org.springframework.web.servlet.View redirectTo(String path)
-
pause
@RequestMapping(value="", method=POST, params="pause") public org.springframework.web.servlet.View pause()
-
resume
@RequestMapping(value="", method=POST, params="resume") public org.springframework.web.servlet.View resume()
-
stop
@RequestMapping(value="", method=POST, params="stop") public org.springframework.web.servlet.View stop()
-
restart
@RequestMapping(value="", method=POST, params="restart") public org.springframework.web.servlet.View restart()
-
clearErrors
@RequestMapping(value="", method=POST, params="clear-failures") public org.springframework.web.servlet.View clearErrors()
-
syncProcessStats
@ModelAttribute public SyncProcessStats syncProcessStats()
-
syncOptimizeManager
@ModelAttribute public SyncOptimizeManager syncOptimizeManager()
-
syncProcessState
@ModelAttribute public SyncProcessState syncProcessState()
-
currentError
@ModelAttribute("currentError") public SyncProcessError currentError()
-
monitoredFiles
@ModelAttribute("monitoredFiles") public List<MonitoredFile> monitoredFiles()
-
failures
@ModelAttribute("failures") public List<SyncSummary> failures()
-
recentlyCompleted
@ModelAttribute("recentlyCompleted") public List<SyncSummary> recentlyCompleted()
-
fileSizeFormatter
@ModelAttribute("fileSizeFormatter") public FileSizeFormatter fileSizeFormatter()
-
-