infoservice.dynamic
Class VirtualCascade

java.lang.Object
  extended by anon.infoservice.AbstractDatabaseEntry
      extended by infoservice.dynamic.VirtualCascade

public class VirtualCascade
extends AbstractDatabaseEntry

This class represents a temporary mix-cascade. A cascade is considered temporary if it is not yet physically established. This happens in two szenarios: a) In the semi-dynamic model a last mix' operator selected some mixes for a cascade and the last mix posts the cascade-info to the InfoService. b) The InfoService build new fully dynamic cascades. A temporary cascade becomes a real cascade when the first mix posts a cascade-status for the first time.

Author:
LERNGRUPPE

Field Summary
private  MixCascade cascade
           
private  java.util.Date m_established
           
 
Fields inherited from class anon.infoservice.AbstractDatabaseEntry
XML_LAST_UPDATE
 
Constructor Summary
private VirtualCascade(long a_expireTime)
           
  VirtualCascade(MixCascade a_cascade)
          Creates a new temporary cascade using the given real MixCascade
 
Method Summary
 java.util.Date getEstablishedDate()
           
 java.lang.String getId()
          Returns a unique ID for a database entry.
 long getLastUpdate()
          Returns the time in milliseconds when this db entry was created from the origin instance.
 MixCascade getRealCascade()
          Returns the proxy'd real MixCascade
 long getVersionNumber()
          Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry).
 
Methods inherited from class anon.infoservice.AbstractDatabaseEntry
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cascade

private MixCascade cascade

m_established

private java.util.Date m_established
Constructor Detail

VirtualCascade

public VirtualCascade(MixCascade a_cascade)
Creates a new temporary cascade using the given real MixCascade

Parameters:
a_cascade -

VirtualCascade

private VirtualCascade(long a_expireTime)
Method Detail

getId

public java.lang.String getId()
Description copied from class: AbstractDatabaseEntry
Returns a unique ID for a database entry.

Specified by:
getId in class AbstractDatabaseEntry
Returns:
The ID of this database entry.

getLastUpdate

public long getLastUpdate()
Description copied from class: AbstractDatabaseEntry
Returns the time in milliseconds when this db entry was created from the origin instance.

Specified by:
getLastUpdate in class AbstractDatabaseEntry
Returns:
the time in milliseconds when this db entry was created from the origin instance

getVersionNumber

public long getVersionNumber()
Description copied from class: AbstractDatabaseEntry
Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry).

Specified by:
getVersionNumber in class AbstractDatabaseEntry
Returns:
The version number for this entry.

getRealCascade

public MixCascade getRealCascade()
Returns the proxy'd real MixCascade

Returns:
The proxy'd real MixCascade

getEstablishedDate

public java.util.Date getEstablishedDate()