|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
uk.ac.soton.itinnovation.grid.service.data.DataServiceModule
public class DataServiceModule
| Field Summary | |
|---|---|
static String |
DATA_SERVICE_RESOURCE_TYPE
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
groupUtils, management, NO_ACCOUNT_NEEDED, pbacUtils, pdp, proxyFactory, thisServiceAddress, wsdlCache |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.data.DataStagerResource |
|---|
DATA_RESOURCE_TYPE, DATA_STAGER_REST_URL |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Constructor Summary | |
|---|---|
DataServiceModule()
|
|
| Method Summary | |
|---|---|
void |
addOwnerRule(MatchRule rule)
Deprecated. |
void |
adoptFileLocal(String resourceID,
File data)
Adopt 'data' into stager. |
protected void |
chargeForUsage(TradeAccountConversation account,
String resourceID,
SubjectDescription user,
BigDecimal amount,
String currency,
String message)
Charge usage to an account. |
DataStagerStatus |
checkData()
Reports on the status of the data stager. |
DataStagerStatus |
checkDataLocal(String conversationID)
Reports on the status of a data stager. |
boolean |
checkReadAccess(SubjectDescription delegate)
Checks if the quoted delegate may read from this data stager. |
boolean |
checkWriteAccess(SubjectDescription delegate)
Checks if the quoted delegate may write to this data stager |
void |
copyFrom(org.apache.axis.message.addressing.EndpointReferenceType source)
Copy data from another data stager. |
void |
copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
Copy data from another data stager. |
void |
copyFromURL(String source)
Copy data from a normal web resource identified by a URL. |
void |
copyFromURLInternal(String conversationID,
String source)
|
void |
copyFromURLLocal(String conversationID,
String source)
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 |
copyTo(org.apache.axis.message.addressing.EndpointReferenceType target)
Copy data to another data stager. |
void |
copyToInternal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
|
void |
copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
Copy data to another data stager. |
org.apache.axis.message.addressing.EndpointReferenceType |
createStagingArea(String label,
MatchRule owner)
Create a new staging area. |
void |
deleteContents()
Delete data in the staging area. |
void |
deleteContentsInternal(String dataResourceID)
Empty this stager. |
void |
destroy()
WSResource lifetime destroy |
void |
destroyLocal(String resourceId)
|
void |
disableR(MatchRule delegate)
Deprecated. |
void |
disableW(MatchRule delegate)
Deprecated. |
void |
enableR(MatchRule delegate)
Deprecated. |
void |
enableW(MatchRule delegate)
Deprecated. |
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
void |
finishData()
Deprecated. |
void |
finishDataLocal(String resourceID)
Like finishData, but takes the conversation as an argument instead of getting it from the process context. |
protected org.apache.axis.message.addressing.EndpointReferenceType |
generateEPR(GridResource bean)
Generate an EPR from a resource's bean. |
List<String> |
getAdditionalFederationMethods()
|
List<org.apache.axis.message.addressing.EndpointReferenceType> |
getAdditionalFederations()
|
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
List<String> |
getFederatedMethods()
|
MatchRule[] |
getManagerRules()
Deprecated. |
NotificationMessage[] |
getMessages()
Returns all usage messages |
NotificationMessage[] |
getMessagesN(int MaximumNumber)
Returns usage messages |
MatchRule[] |
getOwnerRules()
Deprecated. |
MatchRule[] |
getReaderRules()
Deprecated. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
protected Class<? extends GridResource> |
getResourceType(String resourceID)
Return the class of this resource's bean. |
MatchRule[] |
getWriterRules()
Deprecated. |
String |
initStagingAreaLocal(PolicyRule 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(PolicyRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
Create a new empty data stager. |
javax.activation.DataHandler |
read()
Read data from the stager. |
void |
reloadConfiguration()
Reload the configuration. |
void |
removeOwnerRule(MatchRule rule)
Deprecated. |
void |
save(javax.activation.DataHandler data)
Store data in the stager. |
void |
setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] methods)
|
void |
writeEnable()
Write enable the staging area. |
void |
writeProtect()
Write protect the staging area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.data.LocalDataService |
|---|
getEPR |
| 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.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.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Field Detail |
|---|
public static final String DATA_SERVICE_RESOURCE_TYPE
| Constructor Detail |
|---|
public DataServiceModule()
| Method Detail |
|---|
public void reloadConfiguration()
throws RemoteException
Exception - if the configuration is not yet valid
RemoteException
public void ensurePoliciesDeployed()
throws RemoteException
WebAdmin
ensurePoliciesDeployed in interface WebAdminRemoteException
public org.apache.axis.message.addressing.EndpointReferenceType createStagingArea(String label,
MatchRule owner)
throws RemoteException
DataService
createStagingArea in interface DataServicelabel - label for new stagerowner - A rule to allow access for the owner role
RemoteExceptionprotected org.apache.axis.message.addressing.EndpointReferenceType generateEPR(GridResource bean)
generateEPR in class GridServiceLite
public String initStagingAreaLocal(PolicyRule user,
String label,
org.apache.axis.message.addressing.EndpointReferenceType ownerEPR,
String eventListenerClassName,
boolean internal)
throws RemoteException
LocalDataServiceDataEventListener interface
and be supplied as the eventListener argument to this method.
initStagingAreaLocal in interface LocalDataServiceuser - 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
public String initStagingAreaLocal(PolicyRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
throws RemoteException
LocalDataService
initStagingAreaLocal in interface LocalDataServiceuser - 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
public void save(javax.activation.DataHandler data)
throws RemoteException
DataStagerResource
save in interface DataStagerResourcedata - - data handler for the SOAP attachment
RemoteException
public javax.activation.DataHandler read()
throws RemoteException
DataStagerResource
read in interface DataStagerResourceRemoteException
public void copyFrom(org.apache.axis.message.addressing.EndpointReferenceType source)
throws RemoteException
DataStagerResource
copyFrom in interface DataStagerResourcesource - the data stager from which the data will be fetched
RemoteException
public void copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
throws RemoteException
LocalDataService
copyFromLocal in interface LocalDataServiceconversationID - the resource ID of the local data stager into which data will be copiedsource - the data stager from which the data will be fetched
RemoteException
public void copyFromURL(String source)
throws RemoteException
DataStagerResourceDataStagerResource.copyFrom(org.apache.axis.message.addressing.EndpointReferenceType) instead.
copyFromURL in interface DataStagerResourcesource - the source from which the data will be fetched
RemoteException
public void copyFromURLLocal(String conversationID,
String source)
throws RemoteException
LocalDataService
copyFromURLLocal in interface LocalDataServiceconversationID - the resource ID of the local data stager into which data will be copiedsource - the source URL from which the data will be fetched
RemoteException
public void copyFromURLInternal(String conversationID,
String source)
throws RemoteException
RemoteException
public void copyTo(org.apache.axis.message.addressing.EndpointReferenceType target)
throws RemoteException
DataStagerResource
copyTo in interface DataStagerResourcetarget - the data stager to which this stager's data will be copied
RemoteException
public void copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
throws RemoteException
LocalDataService
copyToLocal in interface LocalDataServiceconversationID - 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
RemoteException
public void copyToInternal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
throws RemoteException
RemoteException
public void writeEnable()
throws RemoteException
DataStagerResource
writeEnable in interface DataStagerResourceRemoteExceptionDataStagerResource.writeProtect()
public void writeProtect()
throws RemoteException
DataStagerResource
writeProtect in interface DataStagerResourceRemoteException
@Deprecated
public void addOwnerRule(MatchRule rule)
throws RemoteException
DataStagerResource
addOwnerRule in interface DataStagerResourcerule - the rule to add
RemoteException
@Deprecated
public void removeOwnerRule(MatchRule rule)
throws RemoteException
DataStagerResource
removeOwnerRule in interface DataStagerResourcerule - the rule to add
RemoteException
@Deprecated
public void enableR(MatchRule delegate)
throws RemoteException
DataStagerResource
enableR in interface DataStagerResourcedelegate - - delegate user
RemoteException
@Deprecated
public void disableR(MatchRule delegate)
throws RemoteException
DataStagerResource
disableR in interface DataStagerResourcedelegate - - delegate user
RemoteException
@Deprecated
public void enableW(MatchRule delegate)
throws RemoteException
DataStagerResource
enableW in interface DataStagerResourcedelegate - - delegate user
RemoteException
@Deprecated
public void disableW(MatchRule delegate)
throws RemoteException
DataStagerResource
disableW in interface DataStagerResourcedelegate - - delegate user
RemoteException
@Deprecated
public MatchRule[] getReaderRules()
throws RemoteException
DataStagerResource
getReaderRules in interface DataStagerResourceRemoteException
@Deprecated
public MatchRule[] getWriterRules()
throws RemoteException
DataStagerResource
getWriterRules in interface DataStagerResourceRemoteException
@Deprecated
public MatchRule[] getManagerRules()
throws RemoteException
DataStagerResource
getManagerRules in interface DataStagerResourceRemoteException
@Deprecated
public MatchRule[] getOwnerRules()
throws RemoteException
DataStagerResource
getOwnerRules in interface DataStagerResourceRemoteException
public void deleteContents()
throws RemoteException
DataStagerResource
deleteContents in interface DataStagerResourceRemoteException
public void deleteContentsInternal(String dataResourceID)
throws RemoteException
RemoteException
public boolean checkReadAccess(SubjectDescription delegate)
throws RemoteException
DataStagerResource
checkReadAccess in interface DataStagerResourcedelegate - - delegate user
RemoteException
public boolean checkWriteAccess(SubjectDescription delegate)
throws RemoteException
DataStagerResource
checkWriteAccess in interface DataStagerResourcedelegate - - delegate user
RemoteException
public DataStagerStatus checkData()
throws RemoteException
DataStagerResource
checkData in interface DataStagerResourceRemoteException
public DataStagerStatus checkDataLocal(String conversationID)
throws RemoteException
LocalDataService
checkDataLocal in interface LocalDataServiceconversationID - The resource ID of the data stager being checked.
RemoteException
@Deprecated
public void finishData()
throws RemoteException
DataStagerResource
finishData in interface DataStagerResourceRemoteException
public void finishDataLocal(String resourceID)
throws RemoteException
LocalDataService
finishDataLocal in interface LocalDataServiceRemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws RemoteException
GridService
getResources in interface GridServiceRemoteExceptionprotected Class<? extends GridResource> getResourceType(String resourceID)
GridServiceLite
getResourceType in class GridServiceLite
public void copyOrLinkLocal(String resourceID,
File destination)
throws RemoteException
LocalDataService
copyOrLinkLocal in interface LocalDataServiceRemoteException - if the stager doesn't exist or is empty.
public void adoptFileLocal(String resourceID,
File data)
throws RemoteException
adoptFileLocal in interface LocalDataServiceresourceID - stager which will aquire data, must be empty on entrydata - existing file to be adopted, must be on same filesystem as data root
RemoteException
public Document getAtomFeed(String atomFeed,
String serviceBase)
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)AtomUtils
protected void chargeForUsage(TradeAccountConversation account,
String resourceID,
SubjectDescription user,
BigDecimal amount,
String currency,
String message)
throws RemoteException
resourceID - the resource being useduser - the person using the stageramount - the amount to chargemessage - the message for the user's account statement
This method doesn't check that the user is authorised to use the account. That is only done when creating
a resource, to prevent the problem where we have access to the account but the user doesn't. We don't check after
that, because the user may have been granted access by the owner of the new resource, despite not having access to the account.
RemoteExceptionpublic NotificationMessage[] getMessagesN(int MaximumNumber)
ReportAPI
getMessagesN in interface ReportAPIMaximumNumber - of messages. If more available returns the first.
public NotificationMessage[] getMessages()
ReportAPI
getMessages in interface ReportAPI
public void destroy()
throws ResourceNotDestroyedFault
destroy in interface WSResourceLifetimeResourceNotDestroyedFault
public void destroyLocal(String resourceId)
throws RemoteException
RemoteExceptionpublic List<org.apache.axis.message.addressing.EndpointReferenceType> getAdditionalFederations()
getAdditionalFederations in interface ManagedGridServicepublic List<String> getAdditionalFederationMethods()
getAdditionalFederationMethods in interface ManagedGridService
public void setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] methods)
throws RemoteException
setAdditionalFederation in interface ManagedGridServiceRemoteExceptionpublic List<String> getFederatedMethods()
getFederatedMethods in interface ManagedGridService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||