|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.queue.WtQueue
wt.queue.ScheduleQueue
Use the newScheduleQueue
static factory method(s), not the
ScheduleQueue
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Nested Class Summary |
Nested classes inherited from class wt.queue.WtQueue |
WtQueue.QueueCacheUpdater |
Field Summary | |
private static String |
CLASSNAME
|
private static int |
EXEC_ENTRIES_COUNT
|
static long |
EXTERNALIZATION_VERSION_UID
|
private int |
lateEntriesCount
|
private static long |
MIN_RESCHEDULE_INTERVAL
|
static String |
NEXT_PROCESS_TIME
Label for the attribute. |
private Timestamp |
nextProcessTime
|
private static long |
NOTIFY_INTERVAL
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static WTProperties |
properties
|
private static Hashtable |
removeCompletedEntries
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static Hashtable |
stopProcessing
|
private static long |
SUSPEND_DURATION
|
private static boolean |
VERBOSE
|
private static boolean |
VERBOSE_EXEC_ENTRIES
|
private static boolean |
VERBOSE_EXEC_ENTRY
|
Fields inherited from class wt.queue.WtQueue |
DELETE_WHEN_EMPTY, DELETING, ENABLED, EXCEPTION_RETRIES, EXECUTION_HOST, FAILURE_NOTIFICATION_EMAIL, INIT, LAST_NOTIFICATION_TIME, LAST_STATE_SET, NAME, QUEUE_STATE, REMOVE_FAILED_ENTIRES, RUNNING, STARTED, STARTING, STOPPED, STOPPING, SUSPEND_UNTIL, SUSPENDED, TOTAL_ENTRIES, VERBOSE_INDUSTRIALIZATION, WAITING_ENTRIES |
Fields inherited from class wt.fc.Item |
VERSION_40_UID, VERSION_51_UID |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ScheduleQueue()
|
Method Summary | |
ScheduleQueueEntry |
addEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Object[] args,
Timestamp sched_time)
Creates a new QueueEntry object corresponding to a processing request. |
void |
addMultiEntry(WTPrincipal princ,
String t_method,
String t_class,
Class[] arg_types,
Collection collection,
Timestamp[] sched_time)
Create and commit multiple Queue entires from a Collection. |
boolean |
contains(ScheduleQueueEntry entry)
Returns whether or not an entry belongs to the queue. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
void |
execEntries()
Execute all queue entries in the 'READY' state, in the increasing order of their 'entryNumbers'. |
ScheduleQueueEntry |
execEntry(ScheduleQueueEntry entry)
Executes a the queue entry passed as argument. |
String |
getConceptualClassname()
Deprecated. |
int |
getLateEntriesCount()
|
Timestamp |
getNextProcessTime()
Gets the value of the attribute: NEXT_PROCESS_TIME. |
Date |
getNextWaitTime(long n)
|
Class |
getQType()
|
Integer |
getTotalEntryCount()
|
Integer |
getWaitingEntryCount()
|
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(String name)
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
String host)
Supports initialization, following construction of an instance. |
boolean |
lateEntries(long n)
|
static ScheduleQueue |
newScheduleQueue(String name)
Constructs a queue given its name. |
static ScheduleQueue |
newScheduleQueue(String name,
String host)
Constructs a queue given its name. |
QueryResult |
queueEntries(ScheduleQueue queue)
|
QueryResult |
queueEntries(ScheduleQueue queue,
long now)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
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(ScheduleQueue thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
removeCompleted()
|
void |
setExit(boolean ex)
|
void |
setLateEntriesCount(int val)
|
void |
setNextProcessTime(Timestamp a_NextProcessTime)
Sets the value of the attribute: NEXT_PROCESS_TIME. |
static void |
setStopProcessing(String queueName,
boolean stop)
|
static boolean |
stopProcessing(String queueName)
|
String |
toString()
Returns a string representaion of the queue. |
void |
updateScheduleEntry(ScheduleQueueEntry entry,
StatusInfo status,
Timestamp t)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.Item |
getDomainRef, initialize, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NEXT_PROCESS_TIME
private Timestamp nextProcessTime
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean VERBOSE
private static boolean VERBOSE_EXEC_ENTRIES
private static boolean VERBOSE_EXEC_ENTRY
private static int EXEC_ENTRIES_COUNT
private static long MIN_RESCHEDULE_INTERVAL
private int lateEntriesCount
private static long NOTIFY_INTERVAL
private static long SUSPEND_DURATION
private static Hashtable stopProcessing
private static WTProperties properties
private static Hashtable removeCompletedEntries
Constructor Detail |
public ScheduleQueue()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WtQueue
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WtQueue
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ScheduleQueue thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class WtQueue
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class WtQueue
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public Timestamp getNextProcessTime()
public void setNextProcessTime(Timestamp a_NextProcessTime) throws WTPropertyVetoException
a_NextProcessTime
-
WTPropertyVetoException
public static ScheduleQueue newScheduleQueue(String name) throws WTException
name
-
WTException
protected void initialize(String name) throws WTException
name
-
WTException
public ScheduleQueueEntry addEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time) throws WTException
princ
- t_method
- t_class
- arg_types
- args
- sched_time
-
WTException
public ScheduleQueueEntry execEntry(ScheduleQueueEntry entry) throws WTException
entry
-
WTException
public boolean contains(ScheduleQueueEntry entry) throws WTException
entry
-
WTException
public void execEntries() throws WTException
execEntries
in class WtQueue
WTException
public String toString()
toString
in class WtQueue
public static ScheduleQueue newScheduleQueue(String name, String host) throws WTException
name
- host
-
WTException
protected void initialize(String name, String host) throws WTException
name
- host
-
WTException
public void addMultiEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection, Timestamp[] sched_time) throws WTException
princ
- t_method
- t_class
- arg_types
- collection
- sched_time
-
WTException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class WtQueue
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class WtQueue
public void setExit(boolean ex)
public QueryResult queueEntries(ScheduleQueue queue) throws WTException
WTException
public QueryResult queueEntries(ScheduleQueue queue, long now) throws WTException
WTException
public boolean lateEntries(long n) throws WTException
WTException
public Date getNextWaitTime(long n) throws WTException
WTException
public void updateScheduleEntry(ScheduleQueueEntry entry, StatusInfo status, Timestamp t) throws WTException
WTException
public int getLateEntriesCount()
public void setLateEntriesCount(int val)
public boolean removeCompleted()
public static boolean stopProcessing(String queueName)
public static void setStopProcessing(String queueName, boolean stop)
public Class getQType()
getQType
in class WtQueue
public Integer getTotalEntryCount() throws WTException
WTException
public Integer getWaitingEntryCount() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |