eu.xtreemos.xosd.localallocmgr.basic
Class Registry

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.basic.Registry

public class Registry
extends java.lang.Object

stores info on all original elements the current format is JSON, enables one to search over the elements by simple string search, XPath, etc... what are we trying to do with this object: - store original objects, so that they can be checked when being defragmented. - we are going to ask the registry if there is an object that starts at a certain time (in ms), therefore the access should be as a hashtable from start time to arraylist of objects that start at a given time. TODO: store the elements as objects, cloned of course!

Author:
urosjovanovic

Field Summary
private static java.util.Hashtable<java.lang.Long,java.util.ArrayList<java.lang.String>> registry
           
private static XStream xstream
           
 
Constructor Summary
Registry()
           
 
Method Summary
private static void addElm(java.util.GregorianCalendar start, java.lang.String ttelmxml)
           
static java.util.ArrayList<TTElm> getElmsAt(long startMs)
           
static java.util.ArrayList<java.lang.String> getStoredInfo(long startMs)
           
static void register(TTElm elm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

private static java.util.Hashtable<java.lang.Long,java.util.ArrayList<java.lang.String>> registry

xstream

private static XStream xstream
Constructor Detail

Registry

public Registry()
Method Detail

addElm

private static void addElm(java.util.GregorianCalendar start,
                           java.lang.String ttelmxml)

register

public static void register(TTElm elm)
                     throws AttributeConformanceException
Throws:
AttributeConformanceException

getStoredInfo

public static java.util.ArrayList<java.lang.String> getStoredInfo(long startMs)

getElmsAt

public static java.util.ArrayList<TTElm> getElmsAt(long startMs)