diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache')
6 files changed, 0 insertions, 208 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICache.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICache.java deleted file mode 100644 index 185ab61b94..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICache.java +++ /dev/null @@ -1,24 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.net4j.util.cache; - -/** - * @author Eike Stepper - */ -public interface ICache -{ - public ICacheMonitor getCacheMonitor(); - - /** - * Instructs this cache to evict <b>elementCount</b> elements. - */ - public void evictElements(int elementCount); -} diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitor.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitor.java deleted file mode 100644 index 5c1d77b167..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitor.java +++ /dev/null @@ -1,60 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.net4j.util.cache; - -import org.eclipse.net4j.util.event.INotifier; - -/** - * @author Eike Stepper - */ -public interface ICacheMonitor extends INotifier -{ - public ConditionPolicy getConditionPolicy(); - - public Condition getCondition(); - - public ICacheProbe registerCache(ICache cache); - - public void deregisterCache(ICache cache); - - /** - * @author Eike Stepper - */ - public enum Condition - { - /** - * Condition <b>GREEN</b> indicates that the system is operating normally and enough free memory is available so - * that caches are free to cache additional elements. - */ - GREEN, - - /** - * Condition <b>YELLOW</b> indicates that the system is operating normally but free memory is about to go low so - * that caches should stop to cache additional elements. - */ - YELLOW, - - /** - * Condition <b>RED</b> indicates that the system state is critical and free memory is almost exhausted so that - * caches must immediately stop to cache additional elements. Depending of the eviction strategy element eviction is - * ordered. - */ - RED; - } - - /** - * @author Eike Stepper - */ - public interface ConditionPolicy - { - public Condition getNewCondition(Condition oldCondition); - } -} diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitorEvent.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitorEvent.java deleted file mode 100644 index e3227bc5a6..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheMonitorEvent.java +++ /dev/null @@ -1,25 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.net4j.util.cache; - -import org.eclipse.net4j.util.event.IEvent; - -/** - * @author Eike Stepper - */ -public interface ICacheMonitorEvent extends IEvent -{ - public ICacheMonitor getCacheMonitor(); - - public ICacheMonitor.Condition getOldCondition(); - - public ICacheMonitor.Condition getNewCondition(); -} diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java deleted file mode 100644 index db50f7b4a0..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java +++ /dev/null @@ -1,33 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.net4j.util.cache; - -/** - * @author Eike Stepper - */ -public interface ICacheProbe -{ - public boolean isDisposed(); - - public void elementCached(int elementSize); - - public void elementEvicted(int elementSize); - - public void elementReconstructed(long reconstructionTime); - - public int getElementCount(); - - public long getCacheSize(); - - public long getAverageElementSize(); - - public long getReconstructionCost(); -} diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java deleted file mode 100644 index 980bf90b43..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java +++ /dev/null @@ -1,23 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.net4j.util.cache; - -/** - * @author Eike Stepper - */ -public interface ICacheRegistration extends ICacheProbe -{ - public ICacheMonitor getCacheMonitor(); - - public ICache getCache(); - - public void dispose(); -} diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/package.html b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/package.html deleted file mode 100644 index 3c3ce0d71a..0000000000 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/package.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html> -<head> -<!-- - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html - - Contributors: - Eike Stepper - Initial API and implementation - ---> -</head> -<body bgcolor="white"> - -A generic caching and memory monitoring framework. -<p> - -<!-- - -<h2>Package Specification</h2> - -##### FILL IN ANY SPECS NEEDED BY JAVA COMPATIBILITY KIT ##### -<ul> - <li><a href="">##### REFER TO ANY FRAMEMAKER SPECIFICATION HERE #####</a> -</ul> - -<h2>Related Documentation</h2> - -For overviews, tutorials, examples, guides, and tool documentation, please see: -<ul> - <li><a href="">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a> -</ul> - ---> - -<!-- Put @see and @since tags down here. --> - -</body> -</html> |