|
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
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(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 |
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(String aDebug)
|
void |
setDependencies(List aCreationDependencies,
List aUsageDependencies)
Override any previously set dependencies |
void |
setIntermediate(boolean aIsIntermediate)
|
void |
setMimeType(String aMimeType)
|
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(String aMimeType, int aCreationCost, int aUsageCost)
public DependencyMeta(IURRepresentation aOther, int aCreationCost, int aUsageCost)
public DependencyMeta(IURRepresentation aOther, int aCreationCost)
Method Detail |
public String getMimeType()
IURMeta
getMimeType
in interface IURMeta
public void setMimeType(String aMimeType)
public int getUsageCost()
getUsageCost
in interface IURMeta
public int getContextSensitivity()
IURMeta
getContextSensitivity
in interface IURMeta
public boolean isIntermediate()
isIntermediate
in interface IURMeta
public void setIntermediate(boolean aIsIntermediate)
public int getLocalCreationCost()
IHasDependencies
getLocalCreationCost
in interface IHasDependencies
public String toString()
public boolean canIndependentlyExpire()
IHasDependencies
canIndependentlyExpire
in interface IHasDependencies
public void setDebugString(String aDebug)
public void setDependencies(List aCreationDependencies, List aUsageDependencies)
public long getPessimisticExpiryTime()
getPessimisticExpiryTime
in interface IURMeta
public boolean isExpired()
isExpired
in interface IURMeta
public int getCreationCost()
IURMeta
getCreationCost
in interface IURMeta
public IURMeta[] getDirectDependencies()
IHasDependencies
getDirectDependencies
in interface IHasDependencies
public IURMeta[] getCostDependenciesRecursive()
IHasDependencies
getCostDependenciesRecursive
in interface IHasDependencies
public 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 |