Nouveautés > Windchill > 13.1.1.0 > Personnalisation > API Windchill pour la personnalisation de la gestion des files d'attente
API Windchill pour la personnalisation de la gestion des files d'attente
Windchill 13.1.1.0
Description
Cette section fournit des informations sur les API relatives à la personnalisation de la gestion des files d'attente. Les exemples suivants indiquent comment accéder à ces API :
Classes de couche POM : créez l'objet de la classe, puis appelez l'API à partir de l'objet comme suit :

##object.<NameOfAPI>
ProcessingQueue pq = new ProcessingQueue();
pq.addEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args);
Classes de couche de service : pour appeler l'API à partir de la couche de service, utilisez l'objet QueueHelper.manager.

##QueueHelper.manager.<NameOfAPI>
Enumeration em = QueueHelper.manager.queueEntries(ProcessingQueue queue);
API qui ne sont plus prises en charge
Classe
Signature
ProcessingQueue
public static ProcessingQueue newProcessingQueue( String name ) throws WTException;
ProcessingQueue
public QueueEntry addEntry( WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args ) throws WTException;
ProcessingQueue
public boolean contains( QueueEntry entry ) throws WTException;
ProcessingQueue
public static ProcessingQueue newProcessingQueue( String name, String host ) throws WTException;
ProcessingQueue
public void addMultiEntry( WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection ) throws WTException;
ProcessingQueue
protected void initialize( String name ) throws WTException;
ProcessingQueue
protected void initialize( String name, String host ) throws WTException;
ScheduleQueue
public static ScheduleQueue newScheduleQueue( String name ) throws WTException;
ScheduleQueue
public ScheduleQueueEntry addUniqueEntry ( WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time ) throws WTException;
ScheduleQueue
public ScheduleQueueEntry addEntry( WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time ) throws WTException;
ScheduleQueue
public boolean contains( ScheduleQueueEntry entry ) throws WTException;
ScheduleQueue
public static ScheduleQueue newScheduleQueue( String name, String host ) throws WTException;
ScheduleQueue
public void addMultiEntry( WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection, Timestamp[] sched_time ) throws WTException;
ScheduleQueue
protected void initialize( String name ) throws WTException;
QueueEntry
public static QueueEntry newQueueEntry( ProcessingQueue queue ) throws WTException;
QueueEntry
protected void initialize( ProcessingQueue queue ) throws WTException;
QueueEntry
public WTPrincipal getPrincipal() throws WTException;
QueueEntry
public void setStatus( String status_code ) throws WTException;
QueueEntry
public String getDisplayString();
ScheduleQueueEntry
public static ScheduleQueueEntry newScheduleQueueEntry( ScheduleQueue queue ) throws WTException;
ScheduleQueueEntry
protected void initialize( ScheduleQueue queue ) throws WTException;
ScheduleQueueEntry
public void setStatus( String status_code ) throws WTException;
ScheduleQueueEntry
public String getDisplayString();
WtQueueEntry
public StatusInfo execute() throws WTException;
API nouvellement prises en charge
Classe
Signature
StandardQueueService
public ProcessingQueue getQueue( String queue_name ) throws WTException;
StandardQueueService
public WtQueue getQueue( String queue_name, Class queue_type ) throws WTException;
StandardQueueService
public void deleteEntries( ProcessingQueue queue ) throws WTException;
StandardQueueService
public void deleteEntries( ScheduleQueue queue ) throws WTException;
StandardQueueService
public void deleteEntries( ProcessingQueue queue, String status_code ) throws WTException;
StandardQueueService
public void deleteEntries( ScheduleQueue queue, String status_code ) throws WTException;
StandardQueueService
public Enumeration queueEntries( ProcessingQueue queue ) throws WTException;
StandardQueueService
public Enumeration queueEntries( ScheduleQueue queue ) throws WTException;
StandardQueueService
public Enumeration queueEntries( ProcessingQueue queue, String status_code ) throws WTException;
StandardQueueService
public Enumeration queueEntries( ProcessingQueue queue, Vector status_codes ) throws WTException;
StandardQueueService
public Enumeration queueEntries( ScheduleQueue queue, String status_code ) throws WTException;
StandardQueueService
public void resetQueueEntry( ProcessingQueue queue, String entry_num ) throws WTException;
StandardQueueService
public void resetQueueEntry( ScheduleQueue queue, String entry_num ) throws WTException;
StandardQueueService
public void deleteEntry( QueueInfo qi, QueueEntryInfo qei ) throws WTException;
StandardQueueService
public void deleteEntry(WtQueue queue, WtQueueEntry queueEntry) throws WTException;
StandardQueueService
public WtQueueEntry updateQueueEntry( WtQueue queue, UpdateEntry entryInfo ) throws WTException;
StandardQueueService
public WtQueueEntry updateQueueEntry(WtQueue queue, WtQueueEntry newEntryState) throws WTException;
StandardQueueService
public void deleteEntries(List<? extends Persistable> entries) throws WTException;
StandardQueueService
public Enumeration queueEntries( ScheduleQueue queue, String status_code ) throws WTException;
API transférées de la classe de modèle d'objet (POM) vers la classe de couche de service
Le tableau suivant répertorie les API dont la prise en charge est transférée de la classe de modèle d'objet (couche POM) vers la classe de couche de service :
Classe
Signature
StandardQueueService
public QueueEntry addEntry(ProcessingQueue queue, WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args ) throws WTException;
StandardQueueService
public void addMultiEntry(ProcessingQueue queue, WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection ) throws WTException;
StandardQueueService
public ScheduleQueueEntry addUniqueEntry (ScheduleQueue queue, WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time ) throws WTException;
StandardQueueService
public ScheduleQueueEntry addEntry(ScheduleQueue queue, WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args, Timestamp sched_time ) throws WTException;
StandardQueueService
public void addMultiEntry(ScheduleQueue queue, WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Collection collection, Timestamp[] sched_time ) throws WTException;
StandardQueueService
public static ProcessingQueue newProcessingQueue( String name ) throws WTException;
StandardQueueService
public static ProcessingQueue newProcessingQueue( String name, String host ) throws WTException;
StandardQueueService
public static ScheduleQueue newScheduleQueue( String name ) throws WTException;
StandardQueueService
public static ScheduleQueue newScheduleQueue( String name, String host ) throws WTException;
StandardQueueService
public boolean contains(WtQueue queue, QueueEntry entry ) throws WTException;
StandardQueueService
public WtQueueEntry execEntry(ProcessingQueue queue, WtQueueEntry entry) throws WTException;
StandardQueueService
public WtQueueEntry execEntry(ScheduleQueue queue, WtQueueEntry entry) throws WTException;
StandardQueueService
public void execEntries(ProcessingQueue queue) throws WTException;
StandardQueueService
public void execEntries(ScheduleQueue queue) throws WTException;
StandardQueueService
public boolean hasItems(ProcessingQueue queue, String[] statuses) throws WTException;
StandardQueueService
public boolean contains(ProcessingQueue queue, QueueEntry entry ) throws WTException;
StandardQueueService
public boolean contains(ScheduleQueue queue, ScheduleQueueEntry entry ) throws WTException;
Est-ce que cela a été utile ?