springs.access
Class RetryingAgentInvoking

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--springs.util.retries.RetryingTask
              |
              +--springs.access.RetryingAgentInvoking
All Implemented Interfaces:
java.lang.Runnable

class RetryingAgentInvoking
extends RetryingTask


Field Summary
private  java.lang.String _agentName
           
private  springs.access.AgentReference _aref
           
private  java.lang.Object[] _args
           
private  boolean _cacheRef
           
private  java.lang.String _caller
           
private  int _lastSequenceNumberTried
           
private  java.util.Vector _logs
           
private  java.lang.String _methodName
           
private  java.lang.Object _result
           
 
Fields inherited from class springs.util.retries.RetryingTask
_millisAfterSleep, _millisBetweenIterations, _millisLastTry, _millisLate, _millisNextTry, _millisTillNextTry, maxDelay, minDelay, numRetries, totalDelay
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RetryingAgentInvoking(java.lang.String agentName, boolean cacheRef, java.lang.String methodName, java.lang.Object[] args, java.lang.String caller)
          Constructor.
RetryingAgentInvoking(java.lang.String methodName, java.lang.Object[] args, java.lang.String caller, springs.access.AgentReference aref)
          Constructor.
 
Method Summary
private  springs.access.ResultCallWithStatistics buildResultCallWithStatistics(java.lang.Object result)
          Builds a result with statistics.
 java.lang.String getAgentName()
          Gets the agent name.
 java.lang.String getMethodName()
          Gets the method name.
private  java.lang.String getStringDebug()
          Gets a string for debugging purposes.
 void task()
          Main task.
 
Methods inherited from class springs.util.retries.RetryingTask
getException, getResult, getSuccess, mainMethod, run, setResult, waitCompletion
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_methodName

private java.lang.String _methodName

_args

private java.lang.Object[] _args

_result

private java.lang.Object _result

_agentName

private java.lang.String _agentName

_caller

private java.lang.String _caller

_cacheRef

private boolean _cacheRef

_aref

private springs.access.AgentReference _aref

_lastSequenceNumberTried

private int _lastSequenceNumberTried

_logs

private java.util.Vector _logs
Constructor Detail

RetryingAgentInvoking

public RetryingAgentInvoking(java.lang.String agentName,
                             boolean cacheRef,
                             java.lang.String methodName,
                             java.lang.Object[] args,
                             java.lang.String caller)
Constructor.


RetryingAgentInvoking

public RetryingAgentInvoking(java.lang.String methodName,
                             java.lang.Object[] args,
                             java.lang.String caller,
                             springs.access.AgentReference aref)
Constructor.

Method Detail

getMethodName

public java.lang.String getMethodName()
Gets the method name.

Returns:
the method name.
See Also:
String

getAgentName

public java.lang.String getAgentName()
Gets the agent name.

Returns:
the agent name.
See Also:
String

getStringDebug

private java.lang.String getStringDebug()
Gets a string for debugging purposes.

Returns:
the string.
See Also:
String

buildResultCallWithStatistics

private springs.access.ResultCallWithStatistics buildResultCallWithStatistics(java.lang.Object result)
Builds a result with statistics.

Parameters:
result - the result.
Returns:
the result with statistics.
See Also:
ResultCallWithStatistics, Object

task

public void task()
          throws java.lang.Exception
Main task.

Overrides:
task in class RetryingTask
Throws:
java.lang.Exception - if error.
See Also:
Exception