private final ValidatingReference<CuratorFramework> curator = new ValidatingReference<CuratorFramework>(); @GuardedBy("locks") private final Map<String, InterProcessLock> locks = new HashMap<String, InterProcessLock>();
@GuardedBy("CopyOnWriteArraySet") private final Set<ApiFirewallSupport> firewallSupport = new CopyOnWriteArraySet<ApiFirewallSupport>();
@GuardedBy("volatile") private volatile MavenDownloadProxyServlet mavenDownloadProxyServlet; @GuardedBy("volatile") private volatile MavenUploadProxyServlet mavenUploadProxyServlet; @GuardedBy("volatile") @Property(name = "realm", label = "Jaas Realm", description = "The Jaas Realm to use for uploads", value = DEFAULT_REALM) private volatile String realm; @GuardedBy("volatile") @Property(name = "role", label = "Jaas Role", description = "The Jaas Role to use for uploads", value = DEFAULT_ROLE) private volatile String role; private String uploadRepository; @GuardedBy("AtomicBoolean") private final AtomicBoolean connected = new AtomicBoolean(false);
@GuardedBy("ConcurrentHashMap") private final ConcurrentMap<String, DynamicReference<ComputeService>> computeServices = new ConcurrentHashMap<String, DynamicReference<ComputeService>>();
@GuardedBy("ConcurrentMap") private final ConcurrentMap<Long, ModuleStatus> statusMap = new ConcurrentHashMap<Long, ModuleStatus>(); private ExecutorService executor;
@GuardedBy("ConcurrentMap") private final ConcurrentMap<Long, ModuleStatus> statusMap = new ConcurrentHashMap<Long, ModuleStatus>(); private final ExecutorService executor = Executors.newSingleThreadExecutor();
private final ValidatingReference<FabricService> fabricService = new ValidatingReference<>(); @GuardedBy("ConcurrentMap") private final ConcurrentMap<Bundle, WebEvent> webEvents = new ConcurrentHashMap<Bundle, WebEvent>(); @GuardedBy("ConcurrentMap") private final ConcurrentMap<Bundle, Map<String, ServletEvent>> servletEvents = new ConcurrentHashMap<Bundle, Map<String, ServletEvent>>();
private final ValidatingReference<FabricService> fabricService = new ValidatingReference<FabricService>(); @GuardedBy("this") private final LoadingCache<String, Repository> repositories = CacheBuilder.newBuilder().build(new CacheLoader<String, Repository>() { @Override @GuardedBy("this") private final Set<Repository> installedRepositories = new HashSet<Repository>(); @GuardedBy("this") private final Set<Feature> installedFeatures = new HashSet<Feature>();
private final ValidatingReference<URLStreamHandlerService> urlHandler = new ValidatingReference<URLStreamHandlerService>(); @GuardedBy("this") private final LoadingCache<String, Repository> repositories = CacheBuilder.newBuilder().build(new CacheLoader<String, Repository>() { @Override @GuardedBy("this") private final Set<Repository> installedRepositories = new HashSet<Repository>(); @GuardedBy("this") private final Set<Feature> installedFeatures = new HashSet<Feature>();
@GuardedBy("volatile") private volatile Group<ControllerNode> group;
@GuardedBy("volatile") private volatile Group<AutoScalerNode> group;
private final ValidatingReference<LockService> lockService = new ValidatingReference<LockService>(); @GuardedBy("this") private final Map<Key, CompiledTemplate> templates = new HashMap<Key, CompiledTemplate>(); @GuardedBy("this") private final SetMultimap<TaskContext, WorkItem> assignedWorkItems = Multimaps.synchronizedSetMultimap(HashMultimap.<TaskContext, WorkItem>create()); @GuardedBy("this") private final ParserContext parserContext = new ParserContext();
private final ValidatingReference<CuratorFramework> curator = new ValidatingReference<CuratorFramework>(); @GuardedBy("volatile & assertValid()") private volatile BundleContext bundleContext;