|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.edu.archer.services.icat.ClientLocationPair
public class ClientLocationPair
Contains a pairing of a location identifying a storage resource and a client which is configured to access the resource.
The ClientLocationPair also provides a registry for paths of interest on the storage resource identified by location and will call the registerPaths() and deregisterPaths() methods of the client as paths are added and removed. The registry uses reference counting to ensure that no paths are deregistered early or re-registered unnecessarily.
| Constructor Summary | |
|---|---|
ClientLocationPair()
Creates a new ClientLocationPair, with the client and location set to null. |
|
| Method Summary | |
|---|---|
void |
addPath(java.lang.String path,
boolean updatePathRegistration)
Adds a path to the registry and optionally updates the client. |
au.edu.jcu.hpc.srb.mcatext.client.Client |
getClient()
Returns the client. |
java.lang.String |
getLocation()
Gets the location. |
java.util.List<java.lang.String> |
getPaths()
Returns the registered paths. |
boolean |
hasPath(java.lang.String path)
Returns whether a path is registered with this ClientLocationPair. |
void |
registerPaths()
Registers the paths in the registry with the client. |
void |
removePath(java.lang.String path,
boolean updatePathRegistration)
Removes a path from the registry and optionally updates the client. |
void |
setClient(au.edu.jcu.hpc.srb.mcatext.client.Client client)
Sets the client. |
void |
setLocation(java.lang.String location)
Sets the location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientLocationPair()
| Method Detail |
|---|
public void setClient(au.edu.jcu.hpc.srb.mcatext.client.Client client)
client - the client.public au.edu.jcu.hpc.srb.mcatext.client.Client getClient()
public void setLocation(java.lang.String location)
location - the location.public java.lang.String getLocation()
public boolean hasPath(java.lang.String path)
path - the path to check the registry for.
public void addPath(java.lang.String path,
boolean updatePathRegistration)
path - the path to add to the path registry.updatePathRegistration - whether to update the client.
public void removePath(java.lang.String path,
boolean updatePathRegistration)
path - the path to remove from the path registry.updatePathRegistration - whether to update the client.public void registerPaths()
public java.util.List<java.lang.String> getPaths()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||