org.rhq.core.util.updater
Class DeploymentDiskUsage

java.lang.Object
  extended by 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

Constructor Summary
DeploymentDiskUsage()
           
 
Method Summary
 long getDiskUsage()
           
 int getFileCount()
           
 long getMaxDiskUsable()
          Returns the amount of bytes that are estimated to be usable on disk.
 void increaseDiskUsage(long additionalDiskUsage)
           
 void incrementFileCount()
           
 void setDiskUsage(long diskUsage)
           
 void setFileCount(int fileCount)
           
 void setMaxDiskUsable(long maxDiskUsable)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeploymentDiskUsage

public DeploymentDiskUsage()
Method Detail

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.