Java SDK 1.3 Released

Last post 07-09-2008 7:39 AM by BarryR. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 05-01-2008 7:29 AM

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Java SDK 1.3 Released

    The new Java SDK has been released.  This version includes the following changes:

    1. Content-Range was added to support any size files through partial file upload.
    2. Added File object array in UploadSummary event after an upload is completed.
    3. Added single file uploads through path or java.io.File objects.
    4. Fixed thread bug in uploader.
    5. Added file overwrite through GetStorageNodeExtended.  This can be accessed through an overloaded method in the FileUploader constructor.
    6. PresetTranscode has been added.
     

    You can find the SDK at: http://developer.nirvanix.com/files/folders/j2ee_java/entry57.aspx 

    Please let me post any suggestions or problems with this version here.

    Best Regards,
        Barry R.
     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
    Filed under: ,
  • 05-05-2008 1:53 AM In reply to

    Re: Java SDK 1.3 Released

    Hi Barry,

    I appreciate the update. I have a few more notes/suggestions:

    1. Calling 'public File[] getUploadedFiles()' will result in a class cast exception:
    " [Ljava.lang.Object; cannot be cast to [Lcom.nirvanix.sdk.session.File;"


    The return statement should be
    return this.uploadedFiles.toArray(new File[this.uploadedFiles.size()]);,
    not
    //return (File[])this.uploadedFiles.toArray();

    2. After uploading a single file (uploadFile) and making sure it is hosted by calling
    HostItem() on it, when requesting the public URL (getFileURL) on the
    HostedItem it seems to think it is a folder:

    com.nirvanix.sdk.session.SDKException: Cannot get a download link for a folder.
    at com.nirvanix.sdk.session.HostedItem.getFileURL(HostedItem.java:76)

    This doesn't occur when using the uploadFIles method.

    3. It would be very convenient if com.nirvanix.sdk.session.File.HostedItem()
    returned a HostedItem reference instead of having to call session.listHostedItems()
    and iterate through them all to get the public URL of the single file I just uploaded.

    4. As well as uploading file(s) from the local path and java.io.File objects, exposing the ability
    to sideload content from URL's via the Java SDK would be most excellent

    many thanks

    James
  • 05-05-2008 3:50 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: Java SDK 1.3 Released

     I like every one of these improvments, I will do my best to get them integrated and released as soon as possible.  Thanks again for you through review, please let me know if you find anything else during the course of your implementation.

    Best Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-27-2008 4:25 AM In reply to

    Re: Java SDK 1.3 Released

    Hi Barry,

    How are the updates going?

    Some other things to note:

    1. It seems that the percentage update callback / listener (updateUploadProgress) doesn't report
    progress any more, it just reports when the upload is finished.

    2. Can the java API expose access to the geographically distributed nodes so I can upload
    a file directly to a particular US / EU / ASIA node?

    [on that note I just noticed my account is locked to North America, as when I signed up there
    were no options to exploit your global SDN. Can someone change my account over to
    use the global SDN or do I need to make a new master account?]

    many thanks!

    James
  • 05-27-2008 9:26 AM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: Java SDK 1.3 Released

     

    brobergj:
    1. It seems that the percentage update callback / listener (updateUploadProgress) doesn't report
    progress any more, it just reports when the upload is finished.

    I'll check on this and get it fixed.

    brobergj:
    2. Can the java API expose access to the geographically distributed nodes so I can upload
    a file directly to a particular US / EU / ASIA node?
     

    This is based on the location of the upload.  A simple way to accomplish this would be to use an IP Address at that location.  I will add an overload on the upload methods that takes in an IP Address.

    Alternately you can ask for us to move the files to a specific node for you or set it up to automatically copy to the other nodes on upload as a background process.

    To unlock your account you can send an email to our customer support with that request.

    Thanks for the bug report,
       Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-30-2008 7:43 AM In reply to

    Re: Java SDK 1.3 Released

    I would like access to all your available nodes programatically. In some instances data might be replicated on multiple nodes, but in other instances data might be placed on a single specific geographical node that isn't necessarily correlated with where the data was uploaded from. I hope that makes sense, and can be achieved with the overload method you are planning.
  • 06-12-2008 1:32 AM In reply to

    Re: Java SDK 1.3 Released

    Hi,

    Just checking in to see how far off the new Java SDK is?

    cheers

    James
  • 06-12-2008 4:34 AM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: Java SDK 1.3 Released

     Things are progressing nicely, most of the bug fixes have been added in and I am doing a review of some additional features.  There will be some nice features coming that I will announce when they are ready.

    Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 07-09-2008 5:52 AM In reply to

    Re: Java SDK 1.3 Released

     Hi Barry - how is the release going?

     

     

  • 07-09-2008 7:39 AM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: Java SDK 1.3 Released

     The last and most significant new feature is encryption which is one of those things we absolutely have to get right.  I am working on getting it up to a speed I find acceptable while offering AES 256 encryption (as well as a very configurable interface for your own encryption types).  That said we are progressing nicely for the SDK release.

    Regards,
         Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
Page 1 of 1 (10 items)