public class DiskUsageUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DiskUsageUtil.DiskUsageCallable
A
Callable which computes disk usage of remote file object |
| Constructor and Description |
|---|
DiskUsageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
calculateDiskUsageForBuild(hudson.model.AbstractBuild build) |
static void |
calculateDiskUsageForProject(hudson.model.AbstractProject project) |
static void |
calculateWorkspaceDiskUsage(hudson.model.AbstractProject project) |
static Long |
calculateWorkspaceDiskUsageForPath(hudson.FilePath workspace,
ArrayList<hudson.FilePath> exceeded) |
static void |
controlAllJobsExceedSize() |
static void |
controlorkspaceExceedSize(hudson.model.AbstractProject project) |
static List<hudson.model.AbstractProject> |
getAllProjects(hudson.model.ItemGroup<? extends hudson.model.Item> itemGroup) |
static Date |
getDate(int unit,
int count) |
static Date |
getDate(String timeCount,
String timeUnit) |
static Long |
getFileSize(File f,
List<File> exceedFiles) |
static int |
getIndex(String unit) |
static double |
getScale(long number) |
static Long |
getSizeInBytes(String stringSize) |
static String |
getSizeString(Long size) |
static String |
getUnitString(int floor) |
static boolean |
isSymlink(File f) |
static void |
sendEmail(String subject,
String message) |
public static final Logger LOGGER
public static Date getDate(int unit, int count)
public static void sendEmail(String subject, String message) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic static void controlAllJobsExceedSize()
public static void controlorkspaceExceedSize(hudson.model.AbstractProject project)
public static double getScale(long number)
public static int getIndex(String unit)
public static String getUnitString(int floor)
public static boolean isSymlink(File f)
public static Long getFileSize(File f, List<File> exceedFiles) throws IOException
IOExceptionpublic static void calculateDiskUsageForProject(hudson.model.AbstractProject project)
throws IOException
IOExceptionpublic static void calculateDiskUsageForBuild(hudson.model.AbstractBuild build)
throws IOException
IOExceptionpublic static Long calculateWorkspaceDiskUsageForPath(hudson.FilePath workspace, ArrayList<hudson.FilePath> exceeded) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void calculateWorkspaceDiskUsage(hudson.model.AbstractProject project)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static List<hudson.model.AbstractProject> getAllProjects(hudson.model.ItemGroup<? extends hudson.model.Item> itemGroup)
Copyright © 2004-2013. All Rights Reserved.