| Modifier and Type | Field and Description |
|---|---|
static Permission[] |
CONFIGURE_AND_DISCONNECT |
| Constructor and Description |
|---|
MaintenanceAction(SlaveComputer computer) |
| Modifier and Type | Method and Description |
|---|---|
void |
doAdd(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
UI method to add a smaintenance window.
|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
UI method to submit the configuration.
|
void |
doDeleteMaintenance(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String id)
UI method to delete a maintenance window.
|
void |
doDeleteMultiple(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
UI method to delete multiple maintenance windows.
|
void |
doDisable(org.kohsuke.stapler.StaplerResponse rsp)
UI method to remove the retention strategy.
|
void |
doEnable(org.kohsuke.stapler.StaplerResponse rsp)
UI method to enable the retention strategy.
|
Computer |
getComputer() |
static String |
getDefaultEndTime()
The default end time shown in the UI when adding a new maintenance windows.
|
static String |
getDefaultStartTime() |
String |
getDisplayName() |
String |
getIconClassName() |
String |
getIconFileName() |
Class<MaintenanceWindow> |
getMaintenanceWindowClass() |
SortedSet<MaintenanceWindow> |
getMaintenanceWindows()
Returns a list of maintenance windows.
|
String |
getUrlName() |
boolean |
hasMaintenanceWindows()
The default start time shown in the UI when adding a new maintenance windows.
|
boolean |
isEnabled() |
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final Permission[] CONFIGURE_AND_DISCONNECT
public MaintenanceAction(SlaveComputer computer)
public Computer getComputer()
public String getIconClassName()
getIconClassName in interface IconSpecpublic String getIconFileName()
getIconFileName in interface Actionpublic String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObjectpublic String getUrlName()
getUrlName in interface Actionpublic Class<MaintenanceWindow> getMaintenanceWindowClass()
public boolean isEnabled()
public static String getDefaultStartTime()
public static String getDefaultEndTime()
public boolean hasMaintenanceWindows()
public SortedSet<MaintenanceWindow> getMaintenanceWindows()
@POST
public void doAdd(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
req - Stapler Requestrsp - Stapler ResponseIOException - when writing failsjavax.servlet.ServletException - if an error occurs reading the form@POST
public void doDeleteMultiple(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
req - Stapler Requestrsp - Stapler ResponseIOException - when writing failsjavax.servlet.ServletException - if an error occurs reading the form@POST
public void doDeleteMaintenance(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
String id)
throws IOException
req - Stapler Requestrsp - Stapler ResponseIOException - when writing fails@POST
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
req - Stapler Requestrsp - Stapler ResponseIOException - when writing failsjavax.servlet.ServletException - if an error occurs reading the form@POST
public void doEnable(org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
rsp - Stapler ResponseIOException - when something goes wrong@POST
public void doDisable(org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
rsp - Stapler ResponseIOException - when something goes wrongCopyright © 2016–2022. All rights reserved.