|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.io.StorageObject
public class StorageObject
Represents arbitrary data fragments (e.g. files) to be stored in a repository. Also useful for modeling file transfers.
Field Summary | |
---|---|
String |
id
the identifier of the storage object. |
long |
size
The actual size of the object. |
Constructor Summary | |
---|---|
StorageObject(String myid)
Allows the creation of the storage object with unknown size (the simulator will pick a random one! |
|
StorageObject(String myid,
long mysize,
boolean vary)
Allows the creation of the storage object with an influence on the size of the object |
Method Summary | |
---|---|
StorageObject |
newCopy(String myid)
creates a new storage object based on the current one, but with new name. |
String |
toString()
Provides a compact output of all data represented in this Storage Object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String id
public final long size
Constructor Detail |
---|
public StorageObject(String myid)
myid
- the id of the new storage objectpublic StorageObject(String myid, long mysize, boolean vary)
myid
- the id of the new storage objectmysize
- the size of the storage object (this might not be the actual
size, but could be used for generating varying sizes according
to the param vary. Unit: bytes.vary
- true if the requested storage object size is not fixed,
false otherwiseMethod Detail |
---|
public StorageObject newCopy(String myid)
myid
- the id of the new storage object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |