uk.ac.soton.itinnovation.grid.client.engine.impl
Class PersistentRegistry

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.engine.impl.LocalRegistry
      extended by uk.ac.soton.itinnovation.grid.client.engine.impl.PersistentRegistry
All Implemented Interfaces:
SimpleRegistry

public class PersistentRegistry
extends LocalRegistry


Field Summary
protected  File db
           
protected  Hashtable<QName,String> properties
           
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.engine.impl.LocalRegistry
resources
 
Constructor Summary
PersistentRegistry(File file)
          Creates a new instance of PersistentRegistry
 
Method Summary
 void freeze()
           
protected  boolean importSavedInternal()
           
static Document parseXML(File xml)
           
 void registerResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Add 'resource' to the list of resources registered to this account.
 void thaw()
           
 void unregisterResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Remove a resource previously added with SimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).
 void updateResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Updates and existing registry
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.engine.impl.LocalRegistry
dump, findResourceByEPR, findResourceByName, findResourcesAtService, getEndpointRef, getRegisteredResources, getResources, setEndpoint, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

db

protected File db

properties

protected Hashtable<QName,String> properties
Constructor Detail

PersistentRegistry

public PersistentRegistry(File file)
                   throws IOException
Creates a new instance of PersistentRegistry

Throws:
IOException
Method Detail

freeze

public void freeze()

thaw

public void thaw()

registerResource

public void registerResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
Description copied from interface: SimpleRegistry
Add 'resource' to the list of resources registered to this account.

Specified by:
registerResource in interface SimpleRegistry
Overrides:
registerResource in class LocalRegistry
Parameters:
epr - the resource to be added

parseXML

public static Document parseXML(File xml)
                         throws IOException
Throws:
IOException

importSavedInternal

protected boolean importSavedInternal()
                               throws IOException
Throws:
IOException

unregisterResource

public void unregisterResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
Description copied from interface: SimpleRegistry
Remove a resource previously added with SimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).

Specified by:
unregisterResource in interface SimpleRegistry
Overrides:
unregisterResource in class LocalRegistry

updateResource

public void updateResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
                    throws IllegalArgumentException
Description copied from interface: SimpleRegistry
Updates and existing registry

Specified by:
updateResource in interface SimpleRegistry
Overrides:
updateResource in class LocalRegistry
Parameters:
epr - The endpoint to be updated
Throws:
IllegalArgumentException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.