|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocalDataService
This extends DataService with operations that are only available to in-process callers. This split is so that the WSDL doesn't contain them.
| Field Summary |
|---|
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.data.DataStagerResource |
|---|
DATA_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Method Summary | |
|---|---|
void |
adoptFileLocal(String resourceID,
File data)
Use this file as the contents of this stager. |
DataStagerStatus |
checkDataLocal(String conversationID)
Reports on the status of a data stager. |
void |
copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
Copy data from another data stager. |
void |
copyFromURLLocal(String conversationID,
String sourceURL)
Copy data from a resource identified by a URL. |
void |
copyOrLinkLocal(String resourceID,
File destination)
Copy the contents of resourceID to destination or, if possible, hard-link instead. |
void |
copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
Copy data to another data stager. |
void |
finishDataLocal(String conversationID)
Like finishData, but takes the conversation as an argument instead of getting it from the process context. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEPR(String resourceID)
Convert a resourceID to an EndpointReferenceType. |
String |
initStagingAreaLocal(MatchRule user,
String label,
org.apache.axis.message.addressing.EndpointReferenceType ownerEPR,
String eventListenerClassName,
boolean internal)
Create a new empty data stager managed not by a managing service, but a proxy class. |
String |
initStagingAreaLocal(MatchRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
Create a new empty data stager. |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.data.DataStagerResource |
|---|
addOwnerRule, checkData, checkReadAccess, checkWriteAccess, copyFrom, copyFromURL, copyTo, deleteContents, disableR, disableW, enableR, enableW, finishData, getManagerRules, getOwnerRules, getReaderRules, getWriterRules, read, removeOwnerRule, save, writeEnable, writeProtect |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wsrf.WSResourceLifetime |
|---|
destroy |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement |
|---|
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata |
|---|
getEPR, setLabel |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable |
|---|
getAvailableSignals, signal |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.data.DataService |
|---|
createStagingArea |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.webadmin.WebAdmin |
|---|
ensurePoliciesDeployed, getAtomFeed |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wsrf.WSRFService |
|---|
GetResourceProperty |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.reportapi.ReportAPI |
|---|
getMessages, getMessagesN |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getResources, getServiceProviderID, getServiceProviderIssuer |
| Method Detail |
|---|
String initStagingAreaLocal(MatchRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
throws RemoteException
user - the initial policy; the role can be "owner", "manager", "reader" or "writer"label - label for new stagermanagingConversation - an SLAConversation or TradeAccountConversation to
manage this resource, or null if freeinternal - stager is part of another resource (e.g., the output of a job)
RemoteException
String initStagingAreaLocal(MatchRule user,
String label,
org.apache.axis.message.addressing.EndpointReferenceType ownerEPR,
String eventListenerClassName,
boolean internal)
throws RemoteException
DataEventListener interface
and be supplied as the eventListener argument to this method.
user - the initial policy; the role can be "owner", "manager", "reader" or "writer"label - label for new stagerownerEPR - the EPR of a resource that "owns" this stager. A
conversation using this EPR will be passed to the eventListener
implementation when an event occurs. The service can then call
getEndpointRef to retreive it.eventListenerClassName - the full class name of an implementation
of DataEventListenerinternal - stager is part of another resource (e.g., the output of a job).
This should be true when using this method
RemoteException
void finishDataLocal(String conversationID)
throws RemoteException
RemoteException
void copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
throws GridFailureException
conversationID - the resource ID of the local data stager into which data will be copiedsource - the data stager from which the data will be fetched
GridFailureException
void copyFromURLLocal(String conversationID,
String sourceURL)
throws GridFailureException
conversationID - the resource ID of the local data stager into which data will be copiedsourceURL - the source URL from which the data will be fetched
GridFailureException
void copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
throws GridFailureException
conversationID - the resource ID of the local data stager from which data will be copieduser - the SubjectDescription of the user who needs access to the target stagertarget - the data stager into which the data will be copied
GridFailureException
void copyOrLinkLocal(String resourceID,
File destination)
throws RemoteException
GridFailureException - if the stager doesn't exist or is empty.
RemoteException
void adoptFileLocal(String resourceID,
File data)
throws RemoteException
RemoteException
DataStagerStatus checkDataLocal(String conversationID)
throws GridFailureException
conversationID - The resource ID of the data stager being checked.
GridFailureException
org.apache.axis.message.addressing.EndpointReferenceType getEPR(String resourceID)
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||