All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.perforce.p4java.admin.IDiskSpace Maven / Gradle / Ivy

Go to download

P4Java, the Perforce Java API is a Java-native API for accessing Perforce SCM services from within Java applications, servlets, plug-ins, and other Java contexts.

The newest version!
/**
 * Copyright (c) 2011 Perforce Software.  All rights reserved.
 */
package com.perforce.p4java.admin;

/**
 * Defines disk space information on the server.
 */
public interface IDiskSpace {

	/**
	 * Gets the location (Perforce filesystem: P4ROOT, P4JOURNAL, P4LOG, TEMP,
	 * or depot name)
	 *
	 * @return the location
	 */
	String getLocation();

	/**
	 * Gets the used bytes.
	 *
	 * @return the used bytes
	 */
	long getUsedBytes();

	/**
	 * Gets the free bytes.
	 *
	 * @return the free bytes
	 */
	long getFreeBytes();

	/**
	 * Gets the total bytes.
	 *
	 * @return the total bytes
	 */
	long getTotalBytes();

	/**
	 * Gets the percent used.
	 *
	 * @return the percent used
	 */
	int getPercentUsed();

	/**
	 * Gets the file system type (nfs, ext2, xfs, tmpfs, ramfs, ufs, reiserfs, or other).
	 *
	 * @return the file system type
	 */
	String getFileSystemType();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy