001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.cache.invalidation.bridges;
023:
024: import org.jboss.ha.framework.server.ClusterPartitionMBean;
025: import org.jboss.system.ServiceMBean;
026:
027: /**
028: * Cache Invalidation bridge working over JavaGroup.
029: * The partition to be used and the invalidation manager can be defined as part
030: * of the MBean interface.
031: * The bridge automatically discovers which are the InvalidationGroup that are
032: * managed by other node of the cluster and only send invalidation information
033: * for these groups over the network. This makes this bridge very easy to setup
034: * while still being efficient with network resource and CPU serialization cost.
035: *
036: * @see JGCacheInvalidationBridge
037: * @see org.jboss.cache.invalidation.InvalidationManager
038: *
039: * @author <a href="mailto:sacha.labourey@cogito-info.ch">Sacha Labourey</a>.
040: * @version $Revision: 57188 $
041: *
042: * <p><b>Revisions:</b>
043: *
044: * <p><b>24 septembre 2002 Sacha Labourey:</b>
045: * <ul>
046: * <li> First implementation </li>
047: * </ul>
048: */
049:
050: public interface JGCacheInvalidationBridgeMBean extends ServiceMBean {
051: /**
052: * Gets the name of the Clustering partition to be used to exchange
053: * invalidation messages and discover which caches (i.e. InvalidationGroup)
054: * are available
055: *
056: * @return the name of the partition
057: *
058: * @deprecate use {@link #getClusterPartition()}
059: */
060: String getPartitionName();
061:
062: /**
063: * Sets the name of the Clustering partition to be used to exchange
064: * invalidation messages and discover which caches (i.e. InvalidationGroup)
065: * are available
066: *
067: * @param name the name of the partition
068: *
069: * @deprecate use {@link #setClusterPartition()}
070: */
071: void setPartitionName(String name);
072:
073: /**
074: * Get the underlying partition used by this service to exchange
075: * invalidation messages and discover which caches (i.e. InvalidationGroup)
076: * are available
077: *
078: * @return the partition
079: */
080: ClusterPartitionMBean getClusterPartition();
081:
082: /**
083: * Sets the underlying partition used by this service to exchange
084: * invalidation messages and discover which caches (i.e. InvalidationGroup)
085: * are available
086: *
087: * @param clusterPartition the partition
088: */
089: void setClusterPartition(ClusterPartitionMBean clusterPartition);
090:
091: /**
092: * ObjectName of the InvalidationManager to be used. Optional: in this
093: * case, the default InvalidationManager is used.
094: */
095: public String getInvalidationManager();
096:
097: public void setInvalidationManager(String objectName);
098:
099: public String getBridgeName();
100:
101: public void setBridgeName(String name);
102:
103: }
|