|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.meta.DependencyMeta
public class DependencyMeta
An implementation of IURMeta that supports chaining of IURRepresentations for derived results such that costs and expiry dependencies are accumulated.
| Field Summary | |
|---|---|
static boolean |
sDebugFlag
global to determine if instances should keep additional debug metadata useful for development but unused by system |
protected static IURMeta[] |
sEmpty
|
| Constructor Summary | |
|---|---|
DependencyMeta(IURRepresentation aOther,
int aCreationCost)
|
|
DependencyMeta(IURRepresentation aOther,
int aCreationCost,
int aUsageCost)
|
|
DependencyMeta(java.lang.String aMimeType,
int aCreationCost,
int aUsageCost)
Used by accessors for results |
|
| Method Summary | |
|---|---|
boolean |
canIndependentlyExpire()
return true if this meta can expire independently of its dependencies |
int |
getContextSensitivity()
Return the depth of sensitivity on the calling context (super stack). |
IURMeta[] |
getCostDependenciesRecursive()
get recursive list of cost dependencies |
int |
getCreationCost()
Return an abitrary integer cost quantifier for regenerating this representation- see typical accessors for costs they assign. |
IURMeta[] |
getDirectDependencies()
return an array of direct dependencies of this resource |
IURMeta[] |
getExpiryDependenciesRecursive()
get recursive list of expiry dependencies |
int |
getLocalCreationCost()
return local cost for this resource without cost of its dependencies |
java.lang.String |
getMimeType()
Return the MIME (Multipurpose Internet Mail Extensions) type of the resource this representation represents |
long |
getPessimisticExpiryTime()
recursively calculate the pessimistic expiry time |
int |
getUsageCost()
return the usage cost |
boolean |
isExpired()
recursive evaluation of isExpired by looking at dependencies |
boolean |
isIntermediate()
return true if the representation we are the meta for is intermediate |
void |
setDebugString(java.lang.String aDebug)
|
void |
setDependencies(java.util.List aCreationDependencies,
java.util.List aUsageDependencies)
Override any previously set dependencies |
void |
setIntermediate(boolean aIsIntermediate)
|
void |
setMimeType(java.lang.String aMimeType)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final IURMeta[] sEmpty
public static final boolean sDebugFlag
| Constructor Detail |
|---|
public DependencyMeta(java.lang.String aMimeType,
int aCreationCost,
int aUsageCost)
public DependencyMeta(IURRepresentation aOther,
int aCreationCost,
int aUsageCost)
public DependencyMeta(IURRepresentation aOther,
int aCreationCost)
| Method Detail |
|---|
public java.lang.String getMimeType()
IURMeta
getMimeType in interface IURMetapublic void setMimeType(java.lang.String aMimeType)
public int getUsageCost()
getUsageCost in interface IURMetapublic int getContextSensitivity()
IURMeta
getContextSensitivity in interface IURMetapublic boolean isIntermediate()
isIntermediate in interface IURMetapublic void setIntermediate(boolean aIsIntermediate)
public int getLocalCreationCost()
IHasDependencies
getLocalCreationCost in interface IHasDependenciespublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean canIndependentlyExpire()
IHasDependencies
canIndependentlyExpire in interface IHasDependenciespublic void setDebugString(java.lang.String aDebug)
public void setDependencies(java.util.List aCreationDependencies,
java.util.List aUsageDependencies)
public long getPessimisticExpiryTime()
getPessimisticExpiryTime in interface IURMetapublic boolean isExpired()
isExpired in interface IURMetapublic int getCreationCost()
IURMeta
getCreationCost in interface IURMetapublic IURMeta[] getDirectDependencies()
IHasDependencies
getDirectDependencies in interface IHasDependenciespublic IURMeta[] getCostDependenciesRecursive()
IHasDependencies
getCostDependenciesRecursive in interface IHasDependenciespublic IURMeta[] getExpiryDependenciesRecursive()
IHasDependencies
getExpiryDependenciesRecursive in interface IHasDependencies
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||