info.sswap.api.servlet
Class RRGCache.Entry

java.lang.Object
  extended by info.sswap.api.servlet.RRGCache.Entry
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RRGCache

static class RRGCache.Entry
extends java.lang.Object
implements java.io.Serializable

An entry of the cache. It implements Serializable so that EHCache can persist it to disk.


Field Summary
private  java.lang.String errorMessage
          The error message (if there is one; it may be null)
private  java.lang.String rrgSerialization
          The serialization of RRG as RDF/XML (we cannot have RRG object there because it is not Serializable) It may be null, if RRG has not yet been computed
private static long serialVersionUID
          Generated serial version identifier for a serializable class
private  java.lang.String status
          The status messge (if there is one; it may be null)
private  int suggestedPollingInterval
          Suggested polling interval in milliseconds (this field only matters if the other fields are null; i.e., if polling makes sense; if the other fields are not null, the computation reached a terminal state).
 
Constructor Summary
RRGCache.Entry()
           
 
Method Summary
 java.lang.String getErrorMessage()
           
 RRG getRRG()
           
 java.lang.String getRrgSerialization()
           
 java.lang.String getStatus()
           
 int getSuggestedPollingInterval()
           
 void setErrorMessage(java.lang.String errorMessage)
           
 void setRrgSerialization(java.lang.String rrgSerialization)
           
 void setStatus(java.lang.String status)
           
 void setSuggestedPollingInterval(int suggestedPollingInterval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Generated serial version identifier for a serializable class

See Also:
Constant Field Values

rrgSerialization

private java.lang.String rrgSerialization
The serialization of RRG as RDF/XML (we cannot have RRG object there because it is not Serializable) It may be null, if RRG has not yet been computed


errorMessage

private java.lang.String errorMessage
The error message (if there is one; it may be null)


status

private java.lang.String status
The status messge (if there is one; it may be null)


suggestedPollingInterval

private int suggestedPollingInterval
Suggested polling interval in milliseconds (this field only matters if the other fields are null; i.e., if polling makes sense; if the other fields are not null, the computation reached a terminal state).

Constructor Detail

RRGCache.Entry

RRGCache.Entry()
Method Detail

getRrgSerialization

public java.lang.String getRrgSerialization()
Returns:
the rrgSerialization

getRRG

public RRG getRRG()

setRrgSerialization

public void setRrgSerialization(java.lang.String rrgSerialization)
Parameters:
rrgSerialization - the rrgSerialization to set

getErrorMessage

public java.lang.String getErrorMessage()
Returns:
the errorMessage

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Parameters:
errorMessage - the errorMessage to set

setStatus

public void setStatus(java.lang.String status)

getStatus

public java.lang.String getStatus()

getSuggestedPollingInterval

public int getSuggestedPollingInterval()
Returns:
the suggestedPollingInterval

setSuggestedPollingInterval

public void setSuggestedPollingInterval(int suggestedPollingInterval)
Parameters:
suggestedPollingInterval - the suggestedPollingInterval to set


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.