Package com.emc.esu.api

Examples of com.emc.esu.api.ObjectId


            l4j.debug("Found " + children.size() + " objects");
            for (Iterator i = children.iterator(); i.hasNext();) {
                Object o = i.next();
                if (o instanceof Element) {
                    DirectoryEntry de = new DirectoryEntry();
                    de.setId(new ObjectId(((Element) o).getChildText(
                            "ObjectID", esuNs)));
                    String name = ((Element) o).getChildText("Filename", esuNs);
                    String type = ((Element) o).getChildText("FileType", esuNs);

                    name = basePath.toString() + name;
View Full Code Here


    protected ObjectId getObjectId( String location ) {
        Matcher m = OBJECTID_EXTRACTOR.matcher(location);
        if (m.find()) {
            String vid = m.group(1);
            l4j.debug("vId: " + vid);
            return new ObjectId(vid);
        } else {
            throw new EsuException("Could not find ObjectId in " + location);
        }
    }
View Full Code Here

        this.failed = false;
        this.error = null;
        this.closeStream = closeStream;
        this.stream = stream;

        ObjectId id = null;
       
        if( checksumming ) {
          try {
        checksum = new Checksum( Algorithm.SHA0 );
      } catch (NoSuchAlgorithmException e) {
View Full Code Here

        this.failed = false;
        this.error = null;
        this.closeStream = closeStream;
        this.stream = stream;

        ObjectId id = null;

        if( checksumming ) {
          try {
        checksum = new Checksum( Algorithm.SHA0 );
      } catch (NoSuchAlgorithmException e) {
View Full Code Here

   
    Identifier id = null;
    if( atmosPath.contains( "/" ) ) {
      id = new ObjectPath( atmosPath );
    } else {
      id = new ObjectId( atmosPath );
    }
   
    try {
      DownloadHelper dh = new DownloadHelper( esu, new byte[5000] );
      dh.readObject( id,localFile );
View Full Code Here

                "Unable to convert identifier " + identifier + " (" + identifier.getClass().getName() + ")" );
    }

    private Identifier adaptIdentifier( ObjectIdentifier identifier ) {
        if ( identifier == null ) return null;
        if ( identifier instanceof com.emc.atmos.api.ObjectId ) return new ObjectId( identifier.toString() );
        if ( identifier instanceof com.emc.atmos.api.ObjectPath ) return new ObjectPath( identifier.toString() );
        throw new RuntimeException(
                "Unable to convert identifier " + identifier + " (" + identifier.getClass().getName() + ")" );
    }
View Full Code Here

TOP

Related Classes of com.emc.esu.api.ObjectId

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.