wt.dataops.objectcol
Class CollectionActivity

java.lang.Object
  extended bywt.dataops.objectcol.CollectionActivity
All Implemented Interfaces:
Externalizable, Runnable, Serializable
Direct Known Subclasses:
DefaultCollectionActivity

public class CollectionActivity
extends Object
implements Runnable, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  CollectionGraph collection
           
private  CollectionCreator creator
           
private  long duration
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  CollectionState state
           
 
Constructor Summary
CollectionActivity()
           
 
Method Summary
 void cancel()
          

Supported API: false
 CollectionGraph getCollection()
          This method will block until the collection graph is completely constructed.
 AsynchCollectionGraph getCollectionAsynch()
          

Supported API: false
 long getDuration()
          Gets the value of the attribute: duration.
 CollectionState getState()
          Gets the value of the attribute: state.
 void initialize(CollectionCreator creator)
          

Supported API: false
 void initialize(CollectionCreator creator, CollectionGraph input)
          

Supported API: false
 boolean isDone()
          

Supported API: false
static CollectionActivity newCollectionActivity(CollectionCreator creator)
          

Supported API: false
static CollectionActivity newCollectionActivity(CollectionCreator creator, CollectionGraph input)
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(CollectionActivity thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void run()
          

Supported API: false
 void setDuration(long a_Duration)
          Sets the value of the attribute: duration.
 void setState(CollectionState a_State)
          Sets the value of the attribute: state.
 void start()
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

state

private CollectionState state

collection

private CollectionGraph collection

duration

private long duration

creator

private transient CollectionCreator creator

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

CollectionActivity

public CollectionActivity()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(CollectionActivity thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getState

public CollectionState getState()
Gets the value of the attribute: state.

Supported API: false

Returns:
CollectionState

setState

public void setState(CollectionState a_State)
              throws WTPropertyVetoException
Sets the value of the attribute: state.

Supported API: false

Parameters:
a_State -
Throws:
WTPropertyVetoException

getDuration

public long getDuration()
Gets the value of the attribute: duration.

Supported API: false

Returns:
long

setDuration

public void setDuration(long a_Duration)
                 throws WTPropertyVetoException
Sets the value of the attribute: duration.

Supported API: false

Parameters:
a_Duration -
Throws:
WTPropertyVetoException

getCollection

public CollectionGraph getCollection()
This method will block until the collection graph is completely constructed. Then it will return the complete construction graph

Supported API: false

Returns:
CollectionGraph

cancel

public void cancel()


Supported API: false


isDone

public boolean isDone()


Supported API: false

Returns:
boolean

getCollectionAsynch

public AsynchCollectionGraph getCollectionAsynch()


Supported API: false

Returns:
AsynchCollectionGraph

start

public void start()


Supported API: false


run

public void run()


Supported API: false

Specified by:
run in interface Runnable

newCollectionActivity

public static CollectionActivity newCollectionActivity(CollectionCreator creator)
                                                throws WTException


Supported API: false

Parameters:
creator -
Returns:
CollectionActivity
Throws:
WTException

initialize

public void initialize(CollectionCreator creator)
                throws WTException


Supported API: false

Parameters:
creator -
Throws:
WTException

newCollectionActivity

public static CollectionActivity newCollectionActivity(CollectionCreator creator,
                                                       CollectionGraph input)
                                                throws WTException


Supported API: false

Parameters:
creator -
input -
Returns:
CollectionActivity
Throws:
WTException

initialize

public void initialize(CollectionCreator creator,
                       CollectionGraph input)
                throws WTException


Supported API: false

Parameters:
creator -
input -
Throws:
WTException