当前位置: 首页>>代码示例>>Java>>正文


Java CircularArrayList类代码示例

本文整理汇总了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);
        }
    }
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:22,代码来源:FTManagerCIC.java

示例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);
}
 
开发者ID:joffrey-bion,项目名称:fx-log,代码行数:28,代码来源:MainController.java

示例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);
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:12,代码来源:PenguinApplet.java

示例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();
    }
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:11,代码来源:PenguinControler.java

示例5: JobOutput

import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public JobOutput() {
    currentLogs = new CircularArrayList<>(50);
    allLogs = new CircularArrayList<>(50);
}
 
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:5,代码来源:JobOutput.java

示例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();
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:7,代码来源:RequestQueueImpl.java

示例7: getInternalQueue

import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public CircularArrayList<Request> getInternalQueue() {
    return this.requestQueue;
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:4,代码来源:RequestQueueImpl.java

示例8: PenguinListModel

import org.objectweb.proactive.core.util.CircularArrayList; //导入依赖的package包/类
public PenguinListModel(CircularArrayList<PenguinWrapper> penguinList) {
    this.penguinList = penguinList;
}
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:4,代码来源:PenguinApplet.java

示例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();
 
开发者ID:mnip91,项目名称:proactive-component-monitoring,代码行数:6,代码来源:RequestQueue.java


注:本文中的org.objectweb.proactive.core.util.CircularArrayList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。