org.rhq.core.util.updater
Class DeploymentDiskUsage
java.lang.Object
org.rhq.core.util.updater.DeploymentDiskUsage
public class DeploymentDiskUsage
- extends Object
Provides information about the estimated disk usage needed for a deployment.
- Author:
- John Mazzitelli
DeploymentDiskUsage
public DeploymentDiskUsage()
getMaxDiskUsable
public long getMaxDiskUsable()
- Returns the amount of bytes that are estimated to be usable on disk.
In other words, consider this the maximum amount of space available.
If you compare this with the
deployment disk usage
you can esimtate if the disk can fit the deployment content.
- Returns:
- maximum amount of disk that is estimated to be available
setMaxDiskUsable
public void setMaxDiskUsable(long maxDiskUsable)
getDiskUsage
public long getDiskUsage()
setDiskUsage
public void setDiskUsage(long diskUsage)
increaseDiskUsage
public void increaseDiskUsage(long additionalDiskUsage)
getFileCount
public int getFileCount()
setFileCount
public void setFileCount(int fileCount)
incrementFileCount
public void incrementFileCount()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.