Package com.volantis.mcs.devices

Examples of com.volantis.mcs.devices.DeviceRepositoryException


                }
            } finally {
                repository.disconnect(connection);
            }
        } catch (RepositoryException e) {
            throw new DeviceRepositoryException(e);
        }
        return names;
    }
View Full Code Here


                    }
                } finally {
                    repository.disconnect(connection);
                }
            } catch (RepositoryException e) {
                throw new DeviceRepositoryException(e);
            }
        }
        return names;
    }
View Full Code Here

                        nameToDescriptor.put(categoryName, descriptor);
                    } finally {
                        repository.disconnect(connection);
                    }
                } catch (RepositoryException e) {
                    throw new DeviceRepositoryException(e);
                }
            }
        }

        // If we can't find the descriptor, we just return null.
View Full Code Here

                    }
                } finally {
                    repository.disconnect(connection);
                }
            } catch (RepositoryException e) {
                throw new DeviceRepositoryException(e);
            }
        }
        return device;
    }
View Full Code Here

                }
            } finally {
                repository.disconnect(connection);
            }
        } catch (RepositoryException e) {
            throw new DeviceRepositoryException(e);
        }
        return names;
    }
View Full Code Here

        // Lazy load the cache of accessible policy names if necessary.
        if (cachedAccessiblePolicyNames == null) {
            try {
                cachedAccessiblePolicyNames = calculateAccessiblePolicyNames();
            } catch (RepositoryException e) {
                throw new DeviceRepositoryException(e);
            }
        }
        return cachedAccessiblePolicyNames;
    }
View Full Code Here

        } else if (repositoryURL.startsWith(XML_SCHEME)) {
            try {
                deviceRepository = deviceRepositoryFactory.getDeviceRepository(
                    new URL(repositoryURL), unknownDevicesLogFileName);
            } catch (MalformedURLException e) {
                throw new DeviceRepositoryException(e.getMessage(), e);
            }
        } else {
            String scheme = "null";
            if(repositoryURL.indexOf(":")!=-1) {
                scheme = repositoryURL.substring(0,
                        repositoryURL.indexOf(":"));
            }
            String args [] = {repositoryURL, scheme};
            throw new DeviceRepositoryException(EXCEPTION_LOCALIZER.
                    format("device-repository-scheme-unsupported", args));
        }

        return deviceRepository;
    }
View Full Code Here

        String userName = (String) params.remove(JDBC_USERNAME);
        String password = (String) params.remove(JDBC_PASSWORD);
        String defaultProject = (String) params.remove(JDBC_DEFAULT_PROJECT);

        if (defaultProject == null) {
            throw new DeviceRepositoryException(EXCEPTION_LOCALIZER.
                    format(INVALID_JDBC_URL_KEY, new String [] {
                        repositoryURL, JDBC_URL_MESSAGE}));
        }

        // remove the processed parameters
View Full Code Here

            // Return the default device repository impl using the XML
            // repository and accessor we just created.
            return new DefaultDeviceRepository(repository, accessor,
                    accessExperimental);
        } catch (RepositoryException e) {
            throw new DeviceRepositoryException(e);
        }
    }
View Full Code Here

     */
    DefaultIntPolicyValue(String value) throws DeviceRepositoryException {
        try {
            this.value = new Integer(value);
        } catch (NumberFormatException nfe) {
            throw new DeviceRepositoryException(
                        exceptionLocalizer.format("value-not-integer", value),
                        nfe);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.DeviceRepositoryException

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.