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

Field Summary
(package private)  java.util.Map<PodUuid,java.net.URL> idMap
           
(package private) static PodArchiveResolver systemResolver
           
 
Constructor Summary
PodArchiveResolver()
           
 
Method Summary
 void dump(java.io.PrintStream out)
           
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
 

Field Detail

systemResolver

static final PodArchiveResolver systemResolver

idMap

java.util.Map<PodUuid,java.net.URL> idMap
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)

getSystemResolver

public static PodArchiveResolver getSystemResolver()

withinPodArchive

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


Copyright 2004-2004-2006 TELS Center. All Rights Reserved.