亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? abstractbroadcastinglistener.java

?? oscache-2.4.1-full
?? JAVA
字號:
/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.oscache.plugins.clustersupport;

import com.opensymphony.oscache.base.*;
import com.opensymphony.oscache.base.events.*;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.Date;

/**
 * Implementation of a CacheEntryEventListener. It broadcasts the flush events
 * across a cluster to other listening caches. Note that this listener cannot
 * be used in conjection with session caches.
 *
 * @version        $Revision: 254 $
 * @author <a href="&#109;a&#105;&#108;&#116;&#111;:chris&#64;swebtec.&#99;&#111;&#109;">Chris Miller</a>
 */
public abstract class AbstractBroadcastingListener implements CacheEntryEventListener, LifecycleAware {
    private final static Log log = LogFactory.getLog(AbstractBroadcastingListener.class);

    /**
     * The name to use for the origin of cluster events. Using this ensures
     * events are not fired recursively back over the cluster.
     */
    protected static final String CLUSTER_ORIGIN = "CLUSTER";
    protected Cache cache = null;

    public AbstractBroadcastingListener() {
        if (log.isInfoEnabled()) {
            log.info("AbstractBroadcastingListener registered");
        }
    }

    /**
     * Event fired when an entry is flushed from the cache. This broadcasts
     * the flush message to any listening nodes on the network.
     */
    public void cacheEntryFlushed(CacheEntryEvent event) {
        if (!Cache.NESTED_EVENT.equals(event.getOrigin()) && !CLUSTER_ORIGIN.equals(event.getOrigin())) {
            if (log.isDebugEnabled()) {
                log.debug("cacheEntryFlushed called (" + event + ")");
            }

            sendNotification(new ClusterNotification(ClusterNotification.FLUSH_KEY, event.getKey()));
        }
    }

    /**
     * Event fired when an entry is removed from the cache. This broadcasts
     * the remove method to any listening nodes on the network, as long as
     * this event wasn't from a broadcast in the first place.
     */
    public void cacheGroupFlushed(CacheGroupEvent event) {
        if (!Cache.NESTED_EVENT.equals(event.getOrigin()) && !CLUSTER_ORIGIN.equals(event.getOrigin())) {
            if (log.isDebugEnabled()) {
                log.debug("cacheGroupFushed called (" + event + ")");
            }

            sendNotification(new ClusterNotification(ClusterNotification.FLUSH_GROUP, event.getGroup()));
        }
    }

    public void cachePatternFlushed(CachePatternEvent event) {
        if (!Cache.NESTED_EVENT.equals(event.getOrigin()) && !CLUSTER_ORIGIN.equals(event.getOrigin())) {
            if (log.isDebugEnabled()) {
                log.debug("cachePatternFushed called (" + event + ")");
            }

            sendNotification(new ClusterNotification(ClusterNotification.FLUSH_PATTERN, event.getPattern()));
        }
    }

    public void cacheFlushed(CachewideEvent event) {
        if (!Cache.NESTED_EVENT.equals(event.getOrigin()) && !CLUSTER_ORIGIN.equals(event.getOrigin())) {
            if (log.isDebugEnabled()) {
                log.debug("cacheFushed called (" + event + ")");
            }

            sendNotification(new ClusterNotification(ClusterNotification.FLUSH_CACHE, event.getDate()));
        }
    }

    // --------------------------------------------------------
    // The remaining events are of no interest to this listener
    // --------------------------------------------------------
    public void cacheEntryAdded(CacheEntryEvent event) {
    }

    public void cacheEntryRemoved(CacheEntryEvent event) {
    }

    public void cacheEntryUpdated(CacheEntryEvent event) {
    }

    public void cacheGroupAdded(CacheGroupEvent event) {
    }

    public void cacheGroupEntryAdded(CacheGroupEvent event) {
    }

    public void cacheGroupEntryRemoved(CacheGroupEvent event) {
    }

    public void cacheGroupRemoved(CacheGroupEvent event) {
    }

    public void cacheGroupUpdated(CacheGroupEvent event) {
    }

    /**
     * Called by the cache administrator class when a cache is instantiated.
     *
     * @param cache the cache instance that this listener is attached to.
     * @param config The cache's configuration details. This allows the event handler
     * to initialize itself based on the cache settings, and also to receive <em>additional</em>
     * settings that were part of the cache configuration but that the cache
     * itself does not care about. If you are using <code>cache.properties</code>
     * for your configuration, simply add any additional properties that your event
     * handler requires and they will be passed through in this parameter.
     *
     * @throws InitializationException thrown when there was a problem initializing the
     * listener. The cache administrator will log this error and disable the listener.
     */
    public void initialize(Cache cache, Config config) throws InitializationException {
        this.cache = cache;
    }

    /**
     * Handles incoming notification messages. This method should be called by the
     * underlying broadcasting implementation when a message is received from another
     * node in the cluster.
     *
     * @param message The incoming cluster notification message object.
     */
    public void handleClusterNotification(ClusterNotification message) {
        if (cache == null) {
            log.warn("A cluster notification (" + message + ") was received, but no cache is registered on this machine. Notification ignored.");

            return;
        }

        if (log.isInfoEnabled()) {
            log.info("Cluster notification (" + message + ") was received.");
        }

        switch (message.getType()) {
            case ClusterNotification.FLUSH_KEY:
                cache.flushEntry((String) message.getData(), CLUSTER_ORIGIN);
                break;
            case ClusterNotification.FLUSH_GROUP:
                cache.flushGroup((String) message.getData(), CLUSTER_ORIGIN);
                break;
            case ClusterNotification.FLUSH_PATTERN:
                cache.flushPattern((String) message.getData(), CLUSTER_ORIGIN);
                break;
            case ClusterNotification.FLUSH_CACHE:
                cache.flushAll((Date) message.getData(), CLUSTER_ORIGIN);
                break;
            default:
                log.error("The cluster notification (" + message + ") is of an unknown type. Notification ignored.");
        }
    }

    /**
     * Called when a cluster notification message is to be broadcast. Implementing
     * classes should use their underlying transport to broadcast the message across
     * the cluster.
     *
     * @param message The notification message to broadcast.
     */
    abstract protected void sendNotification(ClusterNotification message);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品五月天| 精品福利视频一区二区三区| 激情六月婷婷综合| 午夜伦理一区二区| 麻豆精品久久久| 婷婷综合在线观看| 亚洲一区二区欧美日韩| 成人免费一区二区三区在线观看| 久久亚洲精精品中文字幕早川悠里| 制服丝袜激情欧洲亚洲| 顶级嫩模精品视频在线看| 国产一区二区免费在线| 理论片日本一区| 蜜臀av一级做a爰片久久| 奇米影视在线99精品| 亚洲一二三专区| 亚洲黄色小视频| 国产精品你懂的在线| 精一区二区三区| 国产日韩三级在线| 久久久久久久综合狠狠综合| 日韩美女在线视频| 日韩一区二区免费视频| 欧美一区午夜精品| 欧美一二三四在线| 成人一级视频在线观看| 国产精品1区2区| 国产成a人无v码亚洲福利| 久久精品国产一区二区三区免费看| 亚洲国产aⅴ成人精品无吗| 亚洲美女在线国产| 一区二区三区高清| 视频在线观看一区二区三区| 日日摸夜夜添夜夜添国产精品 | 日韩一级精品视频在线观看| 欧美肥妇free| 欧美成人国产一区二区| 久久精品人人爽人人爽| 国产精品你懂的| 亚洲午夜一区二区| 秋霞影院一区二区| 乱中年女人伦av一区二区| 老司机一区二区| 国产精品1区2区3区| 成人精品一区二区三区四区| 北岛玲一区二区三区四区 | 在线观看91精品国产入口| 成人精品一区二区三区四区| 欧美日韩免费在线视频| 欧美成人精品高清在线播放| 国产精品国产a| 亚洲欧美另类小说视频| 日韩精品欧美精品| 国产成人精品三级| 91影视在线播放| 欧美一区二区免费观在线| 国产日韩欧美精品在线| 亚洲自拍偷拍九九九| 男人的天堂久久精品| 国产精选一区二区三区| 欧美性猛交xxxx黑人交| 亚洲国产aⅴ成人精品无吗| 国产一区二区按摩在线观看| 色婷婷久久一区二区三区麻豆| 88在线观看91蜜桃国自产| 亚洲国产经典视频| 精品一区中文字幕| 色999日韩国产欧美一区二区| www一区二区| 性做久久久久久久久| www.亚洲色图| 精品欧美一区二区三区精品久久| 亚洲欧洲另类国产综合| 国内精品免费在线观看| 在线观看国产91| 国产精品国产三级国产普通话蜜臀 | 另类中文字幕网| 欧美主播一区二区三区美女| 国产日韩视频一区二区三区| 美女一区二区视频| 欧美三级中文字幕在线观看| 国产情人综合久久777777| 久久精品国产免费看久久精品| 97精品国产97久久久久久久久久久久| 精品成人私密视频| 天天色天天爱天天射综合| eeuss鲁一区二区三区| 久久久久久免费网| 日本美女视频一区二区| 欧美精品一卡二卡| 一区二区三区在线观看视频| 国产成人亚洲精品青草天美| 日韩亚洲欧美中文三级| 亚洲精品乱码久久久久久| 国产精品91xxx| 亚洲精品一区二区三区蜜桃下载| 日韩黄色片在线观看| 欧美区一区二区三区| 一区二区三区中文在线| 狠狠色丁香久久婷婷综合丁香| 日韩亚洲欧美高清| 亚洲18色成人| 日韩精品一二三| 亚洲一区二区av在线| 五月激情六月综合| 色94色欧美sute亚洲线路二| 国产日产亚洲精品系列| 美女视频黄 久久| 欧美日本一道本在线视频| 欧美经典三级视频一区二区三区| 久久99热狠狠色一区二区| 91精品国产综合久久久蜜臀图片| 亚洲乱码精品一二三四区日韩在线 | 久久国产日韩欧美精品| 欧美日韩激情一区二区三区| 亚洲一区二区五区| 91女人视频在线观看| 亚洲品质自拍视频网站| 一本到三区不卡视频| 亚洲三级在线免费观看| 91蜜桃在线观看| 波多野洁衣一区| 色综合久久66| 麻豆国产精品777777在线| 久久综合九色综合97婷婷女人 | 石原莉奈在线亚洲二区| 欧美喷水一区二区| 韩国v欧美v亚洲v日本v| 国产精品嫩草影院com| 欧美日韩第一区日日骚| 懂色一区二区三区免费观看| 亚洲综合色视频| www久久久久| 色婷婷亚洲精品| 成人免费三级在线| 麻豆91小视频| 一区二区久久久久久| 亚洲色图欧美偷拍| 国产精品全国免费观看高清| 91在线高清观看| 青青草国产精品97视觉盛宴| 国产日韩欧美高清在线| 国产成人一级电影| 国产一区二区久久| 欧美一区二区三区视频在线 | 91原创在线视频| **网站欧美大片在线观看| 久久激情五月婷婷| 国产成人精品免费视频网站| 欧美区一区二区三区| 国产精品69毛片高清亚洲| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 91在线观看污| 91精品1区2区| 色国产精品一区在线观看| 国产成人av电影在线| 国产一区二区成人久久免费影院| 9l国产精品久久久久麻豆| 欧美日韩电影在线| 亚洲1区2区3区4区| 精品视频在线免费看| 国产日韩亚洲欧美综合| 国产精品黄色在线观看| 99视频热这里只有精品免费| 久久你懂得1024| 国产成人av电影在线| 欧美精品一区二区三区一线天视频| 亚洲成av人片在www色猫咪| 在线视频一区二区三区| 亚洲国产另类精品专区| 欧美日韩综合色| 男人的天堂久久精品| 欧美日本一道本在线视频| xvideos.蜜桃一区二区| 国产精品无人区| 日日摸夜夜添夜夜添精品视频| 美女看a上一区| 91玉足脚交白嫩脚丫在线播放| 久久久蜜臀国产一区二区| 久久久精品一品道一区| 成人黄页毛片网站| 国产精品国产三级国产aⅴ无密码| 欧美日韩亚洲综合一区| 国产成人av电影免费在线观看| 午夜激情久久久| 国产精品天干天干在观线| 欧美中文字幕一二三区视频| 国内精品伊人久久久久av影院| 伊人开心综合网| 国产欧美日韩激情| 97国产精品videossex| 国产在线一区二区| 日韩电影一区二区三区四区| 亚洲精品免费看| 国产精品家庭影院| 国产精品三级久久久久三级| 精品久久久三级丝袜| 日韩免费观看2025年上映的电影| 欧美色涩在线第一页| 色婷婷精品久久二区二区蜜臀av |