|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.ReflectionResource
org.globus.transfer.reliable.service.ReliableFileTransferResource
Resource Implementation
| Fields inherited from class org.globus.wsrf.impl.ReflectionResource |
|
| Constructor Summary | |
ReliableFileTransferResource()
Constructor for the ReliableFileTransferResource object |
|
ReliableFileTransferResource(BaseRequestType req,
String userSubject,
String localUserId,
Calendar initialTerminationTime)
Constructor for the ReliableFileTransferResource object |
|
| Method Summary | |
static ReliableTransferProperties |
createResourceBean(Calendar initialTerminationTime,
Calendar currentTime)
This should be moved to resource |
int |
getConcurrency()
|
Calendar |
getCurrentTime()
Gets the currentTime attribute of the ReliableFileTransferResource object |
Object |
getID()
Gets the iD attribute of the ReliableFileTransferResource object |
int |
getMaxAttempts()
Return the max retries for this resource |
protected FilePersistenceHelper |
getPersistenceHelper()
|
int |
getRequestId()
|
int |
getRequestIdFromKey()
|
boolean |
getRequestType()
|
protected Class |
getResourceBeanClass()
Gets the resourceBeanClass attribute of the ReliableFileTransferResource object |
RFTResourceManager |
getResourceManager()
|
ResourcePropertySet |
getResourcePropertySet()
Gets the resourcePropertySet attribute of the ReliableFileTransferResource object |
ResourceSecurityDescriptor |
getSecurityDescriptor()
Gets the securityDescriptor attribute of the ReliableFileTransferResource object |
List |
getStoredResourceKeyValues()
Gets the storedResourceKeyValues attribute of the ReliableFileTransferResource object |
Calendar |
getTerminationTime()
Gets the terminationTime attribute of the ReliableFileTransferResource object |
TopicList |
getTopicList()
Gets the topicList attribute of the ReliableFileTransferResource object |
commonj.work.WorkManager |
getWorkManager()
|
void |
initialize(Object resourceBean,
QName resourceElementQName,
Object key)
Initialize the rft resource |
private void |
initializeOverallStatusRP()
|
private void |
intializeRequestStatusRP()
|
boolean |
isStarted()
Is started |
void |
load(ResourceKey key)
Called when activating a Transfer resource by ResourceHomeImpl |
private void |
loadSecurityContext(RFTRecoveryData recoveryData)
|
void |
loadSubscribers()
|
protected void |
processDelegatedCredential()
|
private void |
processDelegatedCredential(int requestId)
|
void |
remove()
Removes the resources from the container. |
private void |
sendUsagePacket()
|
void |
setCredential(org.globus.gsi.GlobusCredential credential)
|
private void |
setResourceProperties()
|
private void |
setSecurityDescriptor(String userSubject,
String localUserId)
|
void |
setStartedTrue()
|
void |
setTerminationTime(Calendar time)
Sets the terminationTime attribute of the ReliableFileTransferResource object |
void |
store()
|
private void |
storeSubscriptions()
|
| Methods inherited from class org.globus.wsrf.impl.ReflectionResource |
createNewResourceProperty, createNewResourceProperty, getResourceBean |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
String HOME_LOCATION
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private ResourcePropertySet propSet
private TopicList topicList
private ResourceSecurityDescriptor desc
private Calendar terminationTime
private Calendar resourceCreationTime
private ResourceKey key
private int requestId
private ResourceProperty overallStatusRP
private ResourceProperty totalBytesTransferredRP
private ResourceProperty requestStatusRP
private ResourceProperty totalTimeTakenResourceRP
private TotalBytesTransferredResource totalBytesTransferred
private OverallStatus overallStatus
private RequestStatusType requestStatusType
private RequestStatusTypeEnumeration requestStatusTypeEnumeration
private TotalTimeTakenResource totalTimeTakenType
private int size
private ReliableFileTransferDbAdapter dbAdapter
private TransferRequestType transferRequest
private DeleteRequestType deleteRequest
private int concurrency
private int transfersFinished
private int transfersActive
private int transfersFailed
private int transfersPending
private int transfersRestarted
private int transfersCancelled
private commonj.work.WorkManager workManager
private boolean started
private int maxAttempts
private FilePersistenceHelper persistenceHelper
private static String SUBSCRIPTION_FILE
private boolean delete
private RFTResourceManager resourceManager
private org.globus.gsi.GlobusCredential credential
| Constructor Detail |
public ReliableFileTransferResource()
public ReliableFileTransferResource(BaseRequestType req,
String userSubject,
String localUserId,
Calendar initialTerminationTime)
throws Exception
req - BaseRequestType userSubject - localUserId - initialTerminationTime -
Exception| Method Detail |
public boolean getRequestType()
public int getConcurrency()
public void setCredential(org.globus.gsi.GlobusCredential credential)
throws RftException
credential -
RftException
private void storeSubscriptions()
throws Exception
Exception
private void loadSecurityContext(RFTRecoveryData recoveryData)
throws Exception
Exceptionpublic void store()
store in interface PersistenceCallbackpublic void loadSubscribers()
protected FilePersistenceHelper getPersistenceHelper()
protected void processDelegatedCredential()
throws Exception
Exception
private void processDelegatedCredential(int requestId)
throws Exception
Exception
private void setSecurityDescriptor(String userSubject,
String localUserId)
public void initialize(Object resourceBean,
QName resourceElementQName,
Object key)
throws ResourceException
resourceBean - resourceElementQName - key -
ResourceException
private void initializeOverallStatusRP()
throws RftDBException
RftDBExceptionprivate void intializeRequestStatusRP()
private void setResourceProperties()
throws Exception
Exceptionpublic commonj.work.WorkManager getWorkManager()
public RFTResourceManager getResourceManager()
public ResourceSecurityDescriptor getSecurityDescriptor()
getSecurityDescriptor in interface SecureResource
public List getStoredResourceKeyValues()
throws RftDBException
RftDBExceptionpublic ResourcePropertySet getResourcePropertySet()
getResourcePropertySet in interface ResourcePropertiespublic TopicList getTopicList()
getTopicList in interface TopicListAccessorpublic Object getID()
getID in interface ResourceIdentifierpublic void setTerminationTime(Calendar time)
setTerminationTime in interface ResourceLifetimetime - The new terminationTime valuepublic int getRequestIdFromKey()
public int getRequestId()
public Calendar getTerminationTime()
getTerminationTime in interface ResourceLifetimepublic Calendar getCurrentTime()
getCurrentTime in interface ResourceLifetimeprotected Class getResourceBeanClass()
public boolean isStarted()
public void load(ResourceKey key)
throws ResourceException
load in interface PersistenceCallbackkey - resource key
ResourceExceptionpublic void setStartedTrue()
public int getMaxAttempts()
public void remove()
throws ResourceException
remove in interface RemoveCallbackResourceException
public static ReliableTransferProperties createResourceBean(Calendar initialTerminationTime,
Calendar currentTime)
initialTerminationTime - currentTime - current time
ReliableTransferProperties private void sendUsagePacket()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||