Package eu.mosaic_cloud.drivers.kvstore

Examples of eu.mosaic_cloud.drivers.kvstore.AbstractKeyValueDriver


  protected void startOperation (final Message message, final Session session)
      throws IOException,
        ClassNotFoundException
  {
    Preconditions.checkArgument (message.specification instanceof KeyValueMessage);
    final AbstractKeyValueDriver driver = super.getDriver (this.driverClass);
    this.handleKVOperation (message, session, driver, KeyValueResponseTransmitter.class);
  }
View Full Code Here


      try {
        if (stub == null) {
          KeyValueStub.logger.trace ("KeyValueStub: create new stub."); // $NON-NLS-1$
          final KeyValueResponseTransmitter transmitter = new KeyValueResponseTransmitter ();
          final String driverName = ConfigUtils.resolveParameter (config, ConfigProperties.getString ("KVStoreDriver.6"), String.class, ""); // $NON-NLS-1$ $NON-NLS-2$
          final AbstractKeyValueDriver driver = KeyValueDriverFactory.createDriver (driverName, config, threadingContext);
          stub = new KeyValueStub (config, transmitter, driver, channel);
          stub.driverClass = KeyValueDriverFactory.DriverType.valueOf (driverName.toUpperCase (Locale.ENGLISH)).getDriverClass ();
          KeyValueStub.stubs.put (cData, stub);
          AbstractDriverStub.incDriverReference (stub);
          channel.accept (KeyValueSession.DRIVER, stub);
View Full Code Here

    KeyValueStub stub;
    try {
      KeyValueStub.logger.trace ("KeyValueStub: create new stub."); // $NON-NLS-1$
      final KeyValueResponseTransmitter transmitter = new KeyValueResponseTransmitter ();
      final String driverName = ConfigUtils.resolveParameter (config, ConfigProperties.getString ("KVStoreDriver.6"), String.class, ""); // $NON-NLS-1$ $NON-NLS-2$
      final AbstractKeyValueDriver driver = KeyValueDriverFactory.createDriver (driverName, config, threadingContext);
      stub = new KeyValueStub (config, transmitter, driver, channel);
      stub.driverClass = KeyValueDriverFactory.DriverType.valueOf (driverName.toUpperCase (Locale.ENGLISH)).getDriverClass ();
      AbstractDriverStub.incDriverReference (stub);
      channel.accept (KeyValueSession.DRIVER, stub);
    } catch (final DriverNotFoundException e) {
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.drivers.kvstore.AbstractKeyValueDriver

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.