新功能 > Windchill > 13.1.1.0 > 自訂 > 用於佇列管理自訂的 Windchill API
用於佇列管理自訂的 Windchill API
Windchill 13.1.1.0
描述
本節提供有關用於佇列管理自訂之 API 的資訊。下列範例顯示如何存取這些 API:
POM 圖層類別 - 建立類別的物件,後跟來自物件的 API 呼叫,如下:

##object.<NameOfAPI>
ProcessingQueue pq = new ProcessingQueue();
pq.addEntry(WTPrincipal princ, String t_method, String t_class, Class[] arg_types, Object[] args);
服務層類別 - 欲從服務層呼叫 API,請使用 QueueHelper.manager 物件。

##QueueHelper.manager.<NameOfAPI>
Enumeration em = QueueHelper.manager.queueEntries(ProcessingQueue queue);
不再支援的 API
類別
簽名
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
類別
簽名
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;
從物件模型 (POM) 類別轉換為服務層類別的 API
下表列出可支援性從物件模型類別 (POM 層) 轉移至服務層類別的 API:
類別
簽名
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;
這是否有幫助?