Package com.dotcms.repackage.org.jgroups

Examples of com.dotcms.repackage.org.jgroups.Message


      channel.setReceiver(this);
     
      channel.connect(Config.getStringProperty("CACHE_JGROUPS_GROUP_NAME","dotCMSCluster"));
      channel.setOpt(JChannel.LOCAL, false);
      useJgroups = true;
      channel.send(new Message(null, null, TEST_MESSAGE));
      Address channelAddress = channel.getAddress();
      PhysicalAddress physicalAddr = (PhysicalAddress)channel.downcall(new Event(Event.GET_PHYSICAL_ADDRESS, channelAddress));
      String[] addrParts = physicalAddr.toString().split(":");
      String usedPort = addrParts[addrParts.length-1];
View Full Code Here


    flushAlLocalOnlyl();
    try {
      if (Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)) {
        journalAPI.addCacheEntry("0", ROOT_GOUP);
      } else if (useJgroups) {
        Message msg = new Message(null, null, "0:" + ROOT_GOUP);
        try {
          channel.send(msg);
        } catch (Exception e) {
          Logger.error(DotGuavaCacheAdministratorImpl.class, "Unable to send invalidation to cluster : " + e.getMessage(), e);
        }
View Full Code Here

    try {
      if (Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)) {
        journalAPI.addCacheEntry("0", group);
      } else if (useJgroups) {
        Message msg = new Message(null, null, "0:" + group);
        try {
          channel.send(msg);
        } catch (Exception e) {
          Logger.error(DotGuavaCacheAdministratorImpl.class, "Unable to send invalidation to cluster : " + e.getMessage(), e);
        }
View Full Code Here

        try {
          if (Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)) {
            journalAPI.addCacheEntry(k, g);
          } else if (useJgroups) {
            Message msg = new Message(null, null, k + ":" + g);
            try {
              channel.send(msg);
            } catch (Exception e) {
              Logger.error(DotGuavaCacheAdministratorImpl.class, "Unable to send invalidation to cluster : " + e.getMessage(), e);
            }
View Full Code Here

   * @param msg
   * @return True if the message was sent without any problem, false otherwise.
   */
  public boolean send(String msg) {
    boolean success = false;
    Message message = new Message(null, null, msg);
    try {
      channel.send(message);
      success = true;
    } catch (Exception e) {
      Logger.warn(DotGuavaCacheAdministratorImpl.class, "Unable to send message to cluster : " + e.getMessage(), e);
View Full Code Here

    Logger.info(this, "Method suspect: There is a suspected member : " + mbr);
    Logger.info(DotGuavaCacheAdministratorImpl.class, "suspect + There is a suspected member : " + mbr);
  }

  public void testCluster() {
    Message msg = new Message(null, null, TEST_MESSAGE);
    try {
      channel.send(msg);
      Logger.info(this, "Sending Ping to Cluster " + new Date());
    } catch (ChannelNotConnectedException e) {
      Logger.error(DotGuavaCacheAdministratorImpl.class, e.getMessage(), e);
View Full Code Here

    flushAlLocalOnlyl();
    try{
      if(Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)){
        journalAPI.addCacheEntry("0", ROOT_GOUP);
      }else if(useJgroups){
        Message msg = new Message(null,null,"0:" + ROOT_GOUP);
        try {
          channel.send(msg);
        } catch (Exception e) {
          Logger.error(DotJBCacheAdministratorImpl.class,"Unable to send invalidation to cluster : " + e.getMessage(),e);
        }
View Full Code Here

    }
    try{
      if(Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)){
        journalAPI.addCacheEntry("0", group);
      }else if(useJgroups){
        Message msg = new Message(null,null,"0:" + group);
        try {
          channel.send(msg);
        } catch (Exception e) {
          Logger.error(DotJBCacheAdministratorImpl.class,"Unable to send invalidation to cluster : " + e.getMessage(),e);
        }
View Full Code Here

    }
    try{
      if(Config.getBooleanProperty("CACHE_CLUSTER_THROUGH_DB", false)){
        journalAPI.addCacheEntry(key, group);
      }else if(useJgroups){
        Message msg = new Message(null,null,key + ":" + group);
        try {
          channel.send(msg);
        } catch (Exception e) {
          Logger.error(DotJBCacheAdministratorImpl.class,"Unable to send invalidation to cluster : " + e.getMessage(),e);
        }
View Full Code Here

    Logger.info(this, "Method suspect: There is a suspected member : " + mbr);
      AdminLogger.log(DotJBCacheAdministratorImpl.class, "suspect", "There is a suspected member : " + mbr);
  }
 
  public void testCluster(){
    Message msg = new Message(null,null,"TESTINGCLUSTER");
    try {
      channel.send(msg);
      Logger.info(this, "Sending Ping to Cluster " + new Date());
    } catch (ChannelNotConnectedException e) {
      Logger.error(DotJBCacheAdministratorImpl.class,e.getMessage(),e);
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.jgroups.Message

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.