Examples of DriverConnectionData


Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

  public synchronized void destroy ()
  {
    synchronized (AbstractDriverStub.MONITOR) {
      final int ref = AbstractDriverStub.decDriverReference (this);
      if ((ref == 0)) {
        final DriverConnectionData cData = KeyValueStub.readConnectionData (this.configuration);
        MemcachedStub.stubs.remove (cData);
      }
    }
    super.destroy ();
  }
View Full Code Here

Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

   *            the channel used by the driver for receiving requests
   * @return the Memcached driver stub
   */
  public static MemcachedStub create (final IConfiguration config, final ZeroMqChannel channel, final ThreadingContext threading)
  {
    final DriverConnectionData cData = KeyValueStub.readConnectionData (config);
    MemcachedStub stub;
    synchronized (AbstractDriverStub.MONITOR) {
      stub = MemcachedStub.stubs.get (cData);
      try {
        if (stub == null) {
View Full Code Here

Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

  {
    final String resourceHost = ConfigUtils.resolveParameter (config, "", String.class, ConnectionFactory.DEFAULT_HOST); // $NON-NLS-1$
    final int resourcePort = ConfigUtils.resolveParameter (config, "", Integer.class, ConnectionFactory.DEFAULT_AMQP_PORT); // $NON-NLS-1$
    final String amqpServerUser = ConfigUtils.resolveParameter (config, "", String.class, ConnectionFactory.DEFAULT_USER); // $NON-NLS-1$
    final String amqpServerPasswd = ConfigUtils.resolveParameter (config, "", String.class, ConnectionFactory.DEFAULT_PASS); // $NON-NLS-1$
    DriverConnectionData cData;
    if (amqpServerUser.equals (ConnectionFactory.DEFAULT_USER) && amqpServerPasswd.equals (ConnectionFactory.DEFAULT_PASS)) {
      cData = new DriverConnectionData (resourceHost, resourcePort, "AMQP"); // $NON-NLS-1$
    } else {
      cData = new DriverConnectionData (resourceHost, resourcePort, "AMQP", amqpServerUser, amqpServerPasswd); // $NON-NLS-1$
    }
    return cData;
  }
View Full Code Here

Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

  public synchronized void destroy ()
  {
    synchronized (AbstractDriverStub.MONITOR) {
      final int ref = AbstractDriverStub.decDriverReference (this);
      if ((ref == 0)) {
        final DriverConnectionData cData = KeyValueStub.readConnectionData (this.configuration);
        KeyValueStub.stubs.remove (cData);
      }
    }
    super.destroy ();
  }
View Full Code Here

Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

   *            the channel used by the driver for receiving requests
   * @return the driver stub
   */
  public static KeyValueStub create (final IConfiguration config, final ThreadingContext threadingContext, final ZeroMqChannel channel)
  {
    final DriverConnectionData cData = KeyValueStub.readConnectionData (config);
    KeyValueStub stub;
    synchronized (AbstractDriverStub.MONITOR) {
      stub = KeyValueStub.stubs.get (cData);
      try {
        if (stub == null) {
View Full Code Here

Examples of eu.mosaic_cloud.drivers.interop.DriverConnectionData

                                                                    // $NON-NLS-2$
    final String user = ConfigUtils.resolveParameter (config, ConfigProperties.getString ("KVStoreDriver.5"), String.class, ""); // $NON-NLS-1$
                                                                    // $NON-NLS-2$
    final String passwd = ConfigUtils.resolveParameter (config, ConfigProperties.getString ("KVStoreDriver.4"), String.class, ""); // $NON-NLS-1$
                                                                    // $NON-NLS-2$
    DriverConnectionData cData;
    if ("".equals (user) && "".equals (passwd)) {
      cData = new DriverConnectionData (resourceHost, resourcePort, driver);
    } else {
      cData = new DriverConnectionData (resourceHost, resourcePort, driver, user, passwd);
    }
    return cData;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.