net.sf.sail.core.curnit
Class PodArchiveResolver

java.lang.Object
  extended by net.sf.sail.core.curnit.PodArchiveResolver

public class PodArchiveResolver
extends java.lang.Object

Used to look up the URL of the archive backing a Pod.

Currently it's shared on the VM, which may not be a problem as Pod's have universally unique ids. We'll have to think about this with regards to versioning.

Author:
turadg

Constructor Summary
PodArchiveResolver()
           
 
Method Summary
 void dump(java.io.PrintStream out)
           
static java.net.URL getPodArchive(PodUuid anyPodId)
           
static PodArchiveResolver getSystemResolver()
           
 java.net.URL getUrl(PodUuid podId)
           
 void put(PodUuid podId, java.net.URL url)
           
static java.net.URL withinPodArchive(Pod pod, java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PodArchiveResolver

public PodArchiveResolver()
Method Detail

put

public void put(PodUuid podId,
                java.net.URL url)
Parameters:
podId -
url - base URL of in-pod resources

getUrl

public java.net.URL getUrl(PodUuid podId)

dump

public void dump(java.io.PrintStream out)

getPodArchive

public static java.net.URL getPodArchive(PodUuid anyPodId)

getSystemResolver

public static PodArchiveResolver getSystemResolver()

withinPodArchive

public static java.net.URL withinPodArchive(Pod pod,
                                            java.lang.String path)


Copyright © 2004-2008 TELS Center. All Rights Reserved.