1 class org.simgrid.msg.Storage
2 =============================
4 .. java:package:: org.simgrid.msg
7 .. java:type:: public class Storage
14 .. java:field:: protected String name
24 .. java:method:: public static native Storage[] all()
27 This static method returns all of the storages of the installed platform.
29 :return: An array containing all the storages installed.
34 .. java:method:: public static native Storage getByName(String name) throws HostNotFoundException, StorageNotFoundException
37 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.
39 :param name: The name of the storage to get.
40 :throws StorageNotFoundException: if the name of the storage is not valid.
41 :return: The storage object with the given name.
46 .. java:method:: public native long getFreeSize()
49 This method returns the free size (in bytes) of a storage element.
51 :return: The free size (in bytes) of the storage element.
56 .. java:method:: public native String getHost()
59 Returns the host name the storage is attached to
61 :return: the host name the storage is attached to
66 .. java:method:: public String getName()
69 This method returns the name of a storage.
71 :return: The name of the storage.
76 .. java:method:: public native String getProperty(String name)
79 Returns the value of a given storage property.
84 .. java:method:: public native long getSize()
87 This method returns the size (in bytes) of a storage element.
89 :return: The size (in bytes) of the storage element.
94 .. java:method:: public native long getUsedSize()
97 This method returns the used size (in bytes) of a storage element.
99 :return: The used size (in bytes) of the storage element.
104 .. java:method:: public static native void nativeInit()
107 Class initializer, to initialize various JNI stuff
112 .. java:method:: public native void setProperty(String name, String value)
115 Change the value of a given storage property.
120 .. java:method:: @Override public String toString()