|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vrs.VRSContext
public class VRSContext
VRS context class.
This context is under contruction as not all VRS classes support alternate contexts other then the 'default' (fetched by calling getDefault()). Most VRS classes use the same (shared) VRSContext. It is recommended to use one shared context for all classes in the same application. Different contexts are now under construction in Grid Service containers to maintain different caller Contexts. TODO: Security (Applet/servlet) Context !
Constructor Summary | |
---|---|
VRSContext()
TODO: Contructs new VRSContext. |
|
VRSContext(boolean initialize)
TODO: Contructs new Default VRSContext with optional initialization. |
Method Summary | |
---|---|
void |
Debug(java.lang.String msg)
|
static VRSContext |
getDefault()
Get default VRS environment. |
GlobusCredential |
getGlobusCredentail()
|
GridProxy |
getGridProxy()
|
java.lang.String |
getProxyAsString()
|
Registry |
getRegistry()
|
ServerInfo |
getServerInfoFor(VRL loc,
boolean autoCreate)
Get ServerInfo object used by this context. |
VNode |
getVirtualRoot()
Returns Virtual Root of top level Resource Tree. |
VRL |
getVirtualRootLocation()
Returns Virtual Root VRL of top level Resource Tree. |
void |
init()
|
VNode |
openLocation(VRL vrl)
Perform openLocation using this VRSContext. |
static void |
setDefault(VRSContext context)
Set default VRS Context environment. |
void |
setGlobusCredential(GlobusCredential cred)
|
void |
setGridProxy(GridProxy prox)
|
void |
setProxyFromString(java.lang.String proxyStr)
|
void |
setRegistry(Registry registry)
Sets the VRS Registry, may be done only once. |
void |
setVirtualRoot(VNode vnode)
Set new virtual root, make sure to do this directly after creating a new VRSContext, before doing any other calls. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VRSContext()
VlException
public VRSContext(boolean initialize)
Private Constructor: Currently not possible to create custom VRSContexts
as this isn't yet fully support throughout the VRS.
Use getDefault() for now.
VlException
Method Detail |
---|
public static VRSContext getDefault()
VlException
public static void setDefault(VRSContext context)
It is recommended to share one VRSContext between classes in the same Application. Customized VRSContexts are currently under construction for Applet/Servlet/Grid Service environments.
VlException
public void init()
public GlobusCredential getGlobusCredentail()
public void setGlobusCredential(GlobusCredential cred)
public GridProxy getGridProxy()
public void setGridProxy(GridProxy prox)
public void setRegistry(Registry registry) throws InitializationException
InitializationException
public java.lang.String getProxyAsString() throws VlException
VlException
public void setProxyFromString(java.lang.String proxyStr) throws VlException
VlException
public Registry getRegistry()
public VRL getVirtualRootLocation() throws VlException
VlException
public VNode getVirtualRoot() throws VlException
VlException
public void setVirtualRoot(VNode vnode)
public ServerInfo getServerInfoFor(VRL loc, boolean autoCreate) throws VlException
loc
- autoCreate
-
VlException
public VNode openLocation(VRL vrl) throws VlException
VlException
public void Debug(java.lang.String msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |