class org.simgrid.msg.Storage

public class Storage

Fields

name

protected String name

Storage name

Methods

all

public static native Storage[] all()

This static method returns all of the storages of the installed platform.

Returns:An array containing all the storages installed.

getByName

public static native Storage getByName(String name)

This static method gets a storage instance associated with a native storage of your platform. This is the best way to get a java storage object.

Parameters:
  • name – The name of the storage to get.
Throws:
Returns:

The storage object with the given name.

getFreeSize

public native long getFreeSize()

This method returns the free size (in bytes) of a storage element.

Returns:The free size (in bytes) of the storage element.

getHost

public native String getHost()

Returns the host name the storage is attached to

Returns:the host name the storage is attached to

getName

public String getName()

This method returns the name of a storage.

Returns:The name of the storage.

getProperty

public native String getProperty(String name)

Returns the value of a given storage property.

getSize

public native long getSize()

This method returns the size (in bytes) of a storage element.

Returns:The size (in bytes) of the storage element.

getUsedSize

public native long getUsedSize()

This method returns the used size (in bytes) of a storage element.

Returns:The used size (in bytes) of the storage element.

nativeInit

public static native void nativeInit()

Class initializer, to initialize various JNI stuff

setProperty

public native void setProperty(String name, String value)

Change the value of a given storage property.

toString

public String toString()