Package org.jgroups

Examples of org.jgroups.ChannelFactory


         this.autoStart = Boolean.valueOf(properties.getProperty(AUTO_START, DEFAULT_AUTO_START));
         this.autoStop = Boolean.valueOf(properties.getProperty(AUTO_STOP, DEFAULT_AUTO_STOP));
        
         String stack = properties.getProperty(STACK, DEFAULT_STACK);
         String id = properties.getProperty(CHANNEL_ID);
         ChannelFactory factory = (ChannelFactory) properties.get(CHANNEL_FACTORY);
        
         try
         {
            return factory.createMultiplexerChannel(stack, id);
         }
         catch (Exception e)
         {
            throw new IllegalArgumentException(e);
         }
View Full Code Here


   // Static --------------------------------------------------------
  
   private Channel createChannel()
   {
      ChannelFactory factory = this.getChannelFactory();
      if (factory == null)
      {
         throw new IllegalStateException("HAPartitionConfig has no JChannelFactory");
      }
      String stack = this.getChannelStackName();
      if (stack == null)
      {
         throw new IllegalStateException("HAPartitionConfig has no multiplexer stack");
      }
      try
      {
         return factory.createMultiplexerChannel(stack, this.getPartitionName());
      }
      catch (RuntimeException e)
      {
         throw e;
      }
View Full Code Here

TOP

Related Classes of org.jgroups.ChannelFactory

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.