Examples of PushTask


Examples of com.griddynamics.gridkit.coherence.benchmark.event.PushTask

      int bacthSize = 1;
     
      // ***
      Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
     
      PushTask task = new PushTask(value, objectCount, threadCount, bacthSize, "in-pool");
     
      InvocationService rc = (InvocationService) CacheFactory.getService("event-remote-control-service");
     
      Set members = rc.getInfo().getServiceMembers();
      members.remove(CacheFactory.getCluster().getLocalMember());
View Full Code Here

Examples of com.griddynamics.gridkit.coherence.benchmark.event.PushTask

      int bacthSize = 20;
     
      // ***
      Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
     
      PushTask task = new PushTask(value, objectCount, threadCount, bacthSize, "in-pool");
     
      InvocationService rc = (InvocationService) CacheFactory.getService("event-remote-control-service");
     
      Set members = rc.getInfo().getServiceMembers();
      members.remove(CacheFactory.getCluster().getLocalMember());
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.PushTask

    private void fill(final AbstractSyncTask task, final AbstractSyncTaskTO taskTO) {
        SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidSyncTask);

        if (task instanceof PushTask && taskTO instanceof PushTaskTO) {
            final PushTask pushTask = (PushTask) task;
            final PushTaskTO pushTaskTO = (PushTaskTO) taskTO;

            pushTask.setUserFilter(pushTaskTO.getUserFilter());
            pushTask.setRoleFilter(pushTaskTO.getRoleFilter());

            pushTask.setMatchingRule(pushTaskTO.getMatchingRule() == null
                    ? MatchingRule.LINK : pushTaskTO.getMatchingRule());

            pushTask.setUnmatchingRule(pushTaskTO.getUnmatchingRule() == null
                    ? UnmatchingRule.ASSIGN : pushTaskTO.getUnmatchingRule());

        } else if (task instanceof SyncTask && taskTO instanceof SyncTaskTO) {
            final SyncTask syncTask = (SyncTask) task;
            final SyncTaskTO syncTaskTO = (SyncTaskTO) taskTO;
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.PushTask

        assertEquals(executionNumber + 1, task.getExecs().size());
    }

    @Test
    public void addPushTaskExecution() {
        PushTask task = taskDAO.find(13L);
        assertNotNull(task);

        int executionNumber = task.getExecs().size();

        TaskExec execution = new TaskExec();
        execution.setStatus("Text-free status");
        execution.setTask(task);
        task.addExec(execution);
        execution.setMessage("A message");

        taskDAO.save(task);
        taskDAO.flush();

        task = taskDAO.find(13L);
        assertNotNull(task);

        assertEquals(executionNumber + 1, task.getExecs().size());
    }
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.