From b2f9eb685420ee3f11414d4ace3c9f9adf1d0a4c Mon Sep 17 00:00:00 2001 From: lado Date: Fri, 15 Mar 2013 16:00:45 +0100 Subject: External Cache --- .../src/de/bjusystems/vdrmanager/data/CACHE.java | 62 ++++++++++++++++++++++ .../src/de/bjusystems/vdrmanager/data/Cache.java | 6 --- 2 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 vdrmanager/src/de/bjusystems/vdrmanager/data/CACHE.java delete mode 100644 vdrmanager/src/de/bjusystems/vdrmanager/data/Cache.java diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/CACHE.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/CACHE.java new file mode 100644 index 0000000..bd4facd --- /dev/null +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/CACHE.java @@ -0,0 +1,62 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.TreeMap; +import java.util.WeakHashMap; + +public class CACHE { + + public static WeakHashMap> CACHE = new WeakHashMap>(); + + public static WeakHashMap NEXT_REFRESH = new WeakHashMap(); + + + private static final ArrayList channelGroups = new ArrayList(); + + private static final ArrayList channelSources = new ArrayList(); + + private static LinkedHashMap> groupChannels = new LinkedHashMap>(); + + private static TreeMap> providerChannels = new TreeMap>(); + + private static TreeMap> sourceChannels = new TreeMap>(); + + private static ArrayList channels = new ArrayList(); + + private static Map idChannels = new HashMap(); + + public static Map getIdChannels() { + return idChannels; + } + + private static boolean channels_inited = false; + + public static ArrayList getChannelGroups() { + return channelGroups; + } + + public static ArrayList getChannelSources() { + return channelSources; + } + + + public static HashMap> getGroupChannels() { + return groupChannels; + } + + public static TreeMap> getProviderChannels() { + return providerChannels; + } + + public static TreeMap> getSourceChannels() { + return sourceChannels; + } + + public static ArrayList getChannels() { + return channels; + } +} diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Cache.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Cache.java deleted file mode 100644 index cd47d1e..0000000 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Cache.java +++ /dev/null @@ -1,6 +0,0 @@ -package de.bjusystems.vdrmanager.data; - -public interface Cache { - - void clearCache(); -} -- cgit v1.2.3