Examples of updateMessage()


Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

        // TODO: need to figure out format automatically!
        RDFFormat f = getFormat(format);

        final String taskName = String.format("RDF Importer Task %d (%s)", ++taskCounter, f.getName());
        Task task = taskManagerService.createSubTask(taskName,"Importer");
        task.updateMessage("importing data into Apache Marmotta repository");
        task.updateDetailMessage("format", f.getDefaultMIMEType());
        task.updateDetailMessage("baseUri", baseUri);

        int count = 0;
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

        RDFFormat f = getFormat(format);

        String baseUri = configurationService.getBaseUri() + "resource/";
        final String taskName = String.format("RDF Importer Task %d (%s)", ++taskCounter, f.getName());
        Task task = taskManagerService.createSubTask(taskName, "Importer");
        task.updateMessage("importing data into Apache Marmotta repository");
        task.updateDetailMessage("format", f.getDefaultMIMEType());
        task.updateDetailMessage("baseURI", baseUri);

        int count = 0;
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

        if (type == null || !importService.getAcceptTypes().contains(type)) return Response.status(412).entity("define a valid content-type (types: "+importService.getAcceptTypes()+")").build();
        final String finalType = type;
        final InputStream in = request.getInputStream();

        Task t = taskManagerService.createTask(String.format("Upload-Import from %s (%s)", request.getRemoteHost(), finalType), TASK_GROUP_NAME);
        t.updateMessage("preparing import...");
        t.updateDetailMessage("type", finalType);
        try {
            //create context
            URI context = getContext(context_string);
            if (context != null) {
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

            URI context = getContext(context_string);
            if (context != null) {
                t.updateDetailMessage("context", context.toString());
            }

            t.updateMessage("importing data...");
            importService.importData(in,finalType, userService.getCurrentUser(), context);
            t.updateMessage("import complete");

            return Response.ok().entity("import of content successful\n").build();
        } catch(Exception ex) {
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

                t.updateDetailMessage("context", context.toString());
            }

            t.updateMessage("importing data...");
            importService.importData(in,finalType, userService.getCurrentUser(), context);
            t.updateMessage("import complete");

            return Response.ok().entity("import of content successful\n").build();
        } catch(Exception ex) {
            log.error("error while importing", ex);
            return Response.status(500).entity("error while importing: " + ex.getMessage()).build();
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

            running = true;
            log.trace("Watchdog: starting up");
            final Task task = getTask();
            int count = 0;
            while (running) {
                task.updateMessage("cleaning up");
                task.updateProgress(++count);
                try {
                    HashSet<Thread> dead = new HashSet<Thread>();
                    for (Thread t : tasks.keySet()) {
                        if (!t.isAlive()) {
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateMessage()

                        tasks.remove(t);
                        t = null;
                    }
                    dead.clear();
                    dead = null;
                    task.updateMessage("sleeping");
                    synchronized (ThreadWatchdog.this) {
                        this.wait(millis);
                    }
                } catch (InterruptedException e) {
                    // ignore
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer.updateMessage()

    private void updateUi() {
        IWizardContainer container = getContainer();
        if (container != null) {
            container.updateButtons();
            container.updateMessage();
        }
    }

    @Override
    public IWizardPage getNextPage(IWizardPage page) {
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer.updateMessage()

    private void updateUi() {
        IWizardContainer container = getContainer();
        if (container != null) {
            container.updateButtons();
            container.updateMessage();
        }
    }

    @Override
    public IWizardPage getNextPage(IWizardPage page) {
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.updateMessage()

            } else {
                // check user access rights
                if (dao.checkMod(Integer.parseInt(messageForm.getFid()), user) ||
                        (user.getName().equals(mess.getSender()) &&
                        (currThread.getLocked() == IConst.Topic.STATUS_UNLOCKED))) {
                    dao.updateMessage(messageForm);

                    //subscribe user to e-mail from this thread...
                    if (IConst.VALUES.TRUE.equals(messageForm.getSubscribe())) {
                        dao.subscribe(messageForm.getTid(),
                            user.getInfo().getEmail(), user.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.