Package org.jitterbit.integration.client.database

Examples of org.jitterbit.integration.client.database.DatabaseDriverCache


    private Multimap<ServerGuid, DriverDescriptor> createDriverMap() {
        Multimap<ServerGuid, DriverDescriptor> map = ArrayListMultimap.create();
        for (KnownServer s : serverManager.getRegisteredServers()) {
            try {
                ServerGuid serverGuid = s.getServerInfo().getGuid();
                DatabaseDriverCache driversForServer = driverCache.getCache(serverGuid);
                if (driversForServer != null) {
                    map.putAll(serverGuid, driversForServer.getDrivers());
                }
            } catch (DataCacheException ex) {
                // TODO: Handle me
                ex.printStackTrace();
            }
View Full Code Here


        private void updateCache() {
            try {
                ServerInfo server = job.getServerInfo();
                if (server != null) {
                    DatabaseDriverCache cache = serverCache.getCache(server.getGuid());
                    if (cache != null) {
                        cache.update(Arrays.asList(job.getDownloadedDrivers()));
                    }
                }
            } catch (DataCacheException ex) {
                ErrorLog.log(DriverDownloaderUiJob.class, "Failed to update the local client cache with downloaded driver info.", ex);
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.database.DatabaseDriverCache

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.