de.danet.an.workflow.tools.util
Class SimpleApplicationInfo

java.lang.Object
  extended byde.danet.an.workflow.tools.util.SimpleApplicationInfo
All Implemented Interfaces:
java.io.Serializable

public class SimpleApplicationInfo
extends java.lang.Object
implements java.io.Serializable

This class provides a container for the application instance information managed by the SimpleApplicationDirectory.

Version:
$Revision: 1.5 $
Author:
Michael Lipp
See Also:
Serialized Form

Constructor Summary
(package private) SimpleApplicationInfo(long instanceId, ActivityUniqueKey auk, java.util.Date assignedAt, java.lang.String resourceKey, java.lang.Object state)
          Creates an instance of SimpleApplicationInfo with all attributes initialized to the given values.
 
Method Summary
 ActivityUniqueKey activityUniqueKey()
          Return the activity unique key.
 java.util.Date assignedAt()
          Return the assignment timestamp.
 long id()
          Return the application instance id.
 java.lang.String resourceKey()
          Return the assigned resource.
 java.lang.Object state()
          Return the application state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleApplicationInfo

SimpleApplicationInfo(long instanceId,
                      ActivityUniqueKey auk,
                      java.util.Date assignedAt,
                      java.lang.String resourceKey,
                      java.lang.Object state)
Creates an instance of SimpleApplicationInfo with all attributes initialized to the given values.

Parameters:
instanceId - the instance id
auk - the activity unique key
assignedAt - assignment timestamp
resourceKey - the assigned resource
state - the application state
Method Detail

id

public long id()
Return the application instance id.

Returns:
instance id

activityUniqueKey

public ActivityUniqueKey activityUniqueKey()
Return the activity unique key.

Returns:
activity's unique key

assignedAt

public java.util.Date assignedAt()
Return the assignment timestamp.

Returns:
assignment timestamp

resourceKey

public java.lang.String resourceKey()
Return the assigned resource.

Returns:
assigned resource key

state

public java.lang.Object state()
Return the application state.

Returns:
application state