public LatticeBootDashModel(LatticeRunTarget target, BootDashModelContext context) { super(target); this.store = PropertyStoreFactory.createForScope(target.getType(), context.getRunTargetProperties()); this.ltcTarget = target; this.context = context; }
public AbstractRunTargetType(BootDashModelContext context, String name) { this.name = name; // TODO: there shouldn't be any exceptions to allow for target types that don't provide a // context. // However this requires a bunch of refactoring to get rid of the global constants related to // the // 'LOCAL' runtarget and type. if (context != null) { this.propertyStore = PropertyStoreFactory.createSubStore(name, context.getViewProperties()); } }
private synchronized LatticeBootDashElement ensureElement(String processGuid) { LatticeBootDashElement existing; LatticeBootDashElement created = null; synchronized (this) { existing = elementByProcessGuid.get(processGuid); if (existing == null) { created = existing = new LatticeBootDashElement( this, ltcTarget, processGuid, PropertyStoreFactory.createSubStore(processGuid, store)); elementByProcessGuid.put(processGuid, created); } } if (created != null) { elements.add(created); } return existing; }