|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.core.ResourceData
public class ResourceData
A ResourceData contains several collections of properties
describing resources. Some of these collections are passed between actors
during calls.
| Field Summary | |
|---|---|
java.util.Properties |
localProperties
Local properties: kept locally |
static java.lang.String |
PropertyConfigurationProperties
Property name to use when serializing the configuration properties |
static java.lang.String |
PropertyLocalProperties
Property name to use when serializing the local properties |
static java.lang.String |
PropertyRequestProperties
Property name to use when serializing the request properties |
static java.lang.String |
PropertyResourceProperties
Property name to use when serializing the resource properties |
| Constructor Summary | |
|---|---|
ResourceData()
|
|
ResourceData(boolean empty)
Create a new ResourceData object |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Make a copy of this ResourceData object. |
void |
flex(ResourceData properties)
Absorb properties from a flex request to an extending reservation. |
java.util.Properties |
getConfigurationProperties()
Obtain the configuration properties list |
java.util.Properties |
getLocalProperties()
Obtain the local properties list |
java.util.Properties |
getRequestProperties()
Obtain the request properties list |
java.util.Properties |
getResourceProperties()
Obtain the resource properties list |
void |
merge(ResourceData other)
|
static void |
mergeProperties(java.util.Properties from,
java.util.Properties to)
|
static void |
mergePropertiesPriority(java.util.Properties from,
java.util.Properties to)
|
void |
reset(java.util.Properties p)
Deserialize the ResourceData from string |
void |
revisit(IActor actor,
java.util.Properties p)
|
java.util.Properties |
save()
Serialize the ResourceData to a string |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
setConfigurationProperties(java.util.Properties p)
Set the configuration properties list |
void |
setLocalProperties(java.util.Properties p)
Set the request properties list |
void |
setRequestProperties(java.util.Properties p)
Set the request properties list |
void |
setResourceProperties(java.util.Properties p)
Set the resource properties list |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PropertyLocalProperties
public static final java.lang.String PropertyRequestProperties
public static final java.lang.String PropertyResourceProperties
public static final java.lang.String PropertyConfigurationProperties
public java.util.Properties localProperties
| Constructor Detail |
|---|
public ResourceData()
public ResourceData(boolean empty)
empty - If true, no property lists will be created (Used during deserialization)| Method Detail |
|---|
public java.util.Properties getLocalProperties()
public void setLocalProperties(java.util.Properties p)
p - The request properties listpublic java.util.Properties getRequestProperties()
public void setRequestProperties(java.util.Properties p)
p - The request properties listpublic java.util.Properties getResourceProperties()
public void setResourceProperties(java.util.Properties p)
p - The resource properties listpublic java.util.Properties getConfigurationProperties()
public void setConfigurationProperties(java.util.Properties p)
p - The configuration properties listpublic java.lang.Object clone()
ResourceData object.
clone in class java.lang.Object
public void flex(ResourceData properties)
throws java.lang.Exception
properties - the resource data properties
java.lang.Exception
public static void mergeProperties(java.util.Properties from,
java.util.Properties to)
public static void mergePropertiesPriority(java.util.Properties from,
java.util.Properties to)
public void merge(ResourceData other)
public java.util.Properties save()
throws java.lang.Exception
ResourceData to a string
save in interface ISerializejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializep - properties list to serialize the object into
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ResourceData from string
reset in interface ISerializes - The string representation of this ResourceData
java.lang.Exception
public void revisit(IActor actor,
java.util.Properties p)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||