diff options
author | lado <herrlado@gmail.com> | 2013-03-15 16:00:45 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-03-15 16:00:45 +0100 |
commit | b2f9eb685420ee3f11414d4ace3c9f9adf1d0a4c (patch) | |
tree | 1a1fa28a026d012deff99f41777473aa654a72d6 /vdrmanager/src | |
parent | 21095c6aa0bc5faa67fa560e620ff037df54f4c9 (diff) | |
download | vdr-manager-b2f9eb685420ee3f11414d4ace3c9f9adf1d0a4c.tar.gz vdr-manager-b2f9eb685420ee3f11414d4ace3c9f9adf1d0a4c.tar.bz2 |
External Cache
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/CACHE.java | 62 | ||||
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Cache.java | 6 |
2 files changed, 62 insertions, 6 deletions
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<String, ArrayList<Epg>> CACHE = new WeakHashMap<String, ArrayList<Epg>>(); + + public static WeakHashMap<String, Date> NEXT_REFRESH = new WeakHashMap<String, Date>(); + + + private static final ArrayList<String> channelGroups = new ArrayList<String>(); + + private static final ArrayList<String> channelSources = new ArrayList<String>(); + + private static LinkedHashMap<String, ArrayList<Channel>> groupChannels = new LinkedHashMap<String, ArrayList<Channel>>(); + + private static TreeMap<String, ArrayList<Channel>> providerChannels = new TreeMap<String, ArrayList<Channel>>(); + + private static TreeMap<String, ArrayList<Channel>> sourceChannels = new TreeMap<String, ArrayList<Channel>>(); + + private static ArrayList<Channel> channels = new ArrayList<Channel>(); + + private static Map<String, Channel> idChannels = new HashMap<String, Channel>(); + + public static Map<String, Channel> getIdChannels() { + return idChannels; + } + + private static boolean channels_inited = false; + + public static ArrayList<String> getChannelGroups() { + return channelGroups; + } + + public static ArrayList<String> getChannelSources() { + return channelSources; + } + + + public static HashMap<String, ArrayList<Channel>> getGroupChannels() { + return groupChannels; + } + + public static TreeMap<String, ArrayList<Channel>> getProviderChannels() { + return providerChannels; + } + + public static TreeMap<String, ArrayList<Channel>> getSourceChannels() { + return sourceChannels; + } + + public static ArrayList<Channel> 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(); -} |