本文整理汇总了Java中org.objectweb.proactive.core.util.CircularArrayList类的典型用法代码示例。如果您正苦于以下问题:Java CircularArrayList类的具体用法?Java CircularArrayList怎么用?Java CircularArrayList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CircularArrayList类属于org.objectweb.proactive.core.util包,在下文中一共展示了CircularArrayList类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: filterQueue
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
private void filterQueue(BlockingRequestQueue queue, CheckpointInfoCIC cic) {
CircularArrayList<Request> internalQueue = ((BlockingRequestQueueImpl) queue).getInternalQueue();
ListIterator<Request> itQueue = internalQueue.listIterator();
while (itQueue.hasNext()) {
Request current = (itQueue.next());
MessageInfoCIC mi = (MessageInfoCIC) current.getMessageInfo();
if (mi == null) {
// is request an awaited or a non ft ?
if (current instanceof AwaitedRequest) {
// current is an awaited request that is not updated
this.awaitedRequests.add((AwaitedRequest) current);
}
} else if (mi.isOrphanFor <= cic.checkpointIndex) {
// current is an orpahn request
// System.out.println("" + this.ownerID + " is filtering some orphan requests ...");
AwaitedRequest ar = new AwaitedRequest(current.getSourceBodyID());
itQueue.set(ar);
this.awaitedRequests.add(ar);
}
}
}
示例2: initialize
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
@Override
public void initialize(URL location, ResourceBundle resources) {
config = Config.getInstance();
columnizedLogs = FXCollections.observableArrayList(new CircularArrayList<>());
filteredLogs = new FilteredList<>(columnizedLogs);
colorizer = new SimpleObjectProperty<>();
columnizer = new SimpleObjectProperty<>();
autoScrollActive = new SimpleBooleanProperty(true);
tailingFile = new SimpleBooleanProperty(false);
tailedFileName = new SimpleStringProperty();
closeMenu.disableProperty().bind(tailingFile.not());
// show the search panel only when the search is active
searchPanel.setVisible(false);
configureTitleBinding();
configureNumberOfLogs();
configureColumnizerSelector();
configureColorizerSelector();
configureFiltering();
configureLogsTable();
configureRecentFilesMenu();
configureSecondaryStages();
configureAutoScroll();
searchPanelController.configure(config, filteredLogs, logsTable, columnizer);
}
示例3: PenguinApplet
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public PenguinApplet(PenguinControler c, CircularArrayList<PenguinWrapper> penguinList) {
super("Advanced Penguin Controler");
this.controler = c;
this.penguinListModel = new PenguinListModel(penguinList);
this.startAction = new StartAction();
this.suspendAction = new SuspendAction();
this.resumeAction = new ResumeAction();
this.callAction = new CallAction();
this.chainedCallAction = new ChainedCallAction();
init(600, 300);
}
示例4: PenguinControler
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public PenguinControler(String[] args) {
this.penguinList = new CircularArrayList(20);
this.args = args;
try {
PAActiveObject.turnActive(this);
} catch (Exception e) {
e.printStackTrace();
}
}
示例5: JobOutput
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public JobOutput() {
currentLogs = new CircularArrayList<>(50);
allLogs = new CircularArrayList<>(50);
}
示例6: RequestQueueImpl
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public RequestQueueImpl(UniqueID ownerID) {
this.requestQueue = new CircularArrayList<Request>(20);
this.ownerID = ownerID;
this.requestFilterOnMethodName = new RequestFilterOnMethodName();
this.nfRequestsProcessor = new NonFunctionalRequestsProcessor();
}
示例7: getInternalQueue
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public CircularArrayList<Request> getInternalQueue() {
return this.requestQueue;
}
示例8: PenguinListModel
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public PenguinListModel(CircularArrayList<PenguinWrapper> penguinList) {
this.penguinList = penguinList;
}
示例9: getInternalQueue
import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
/**
* Return the internal queue as a CircularArrayList
* @return the internal queue as a CircularArrayList
*/
public CircularArrayList<Request> getInternalQueue();