Examples of synchronize()


Examples of it.eng.spagobi.security.RoleSynchronizer.synchronize()

            e);
      }
    } else if (serviceType != null  && serviceType.equalsIgnoreCase(ROLES_SYNCHRONIZATION)) {
      try {
        RoleSynchronizer roleSynch = new RoleSynchronizer();
        roleSynch.synchronize();
        logger.debug("Roles synchronized");
        JSONObject attributesResponseSuccessJSON = new JSONObject();
        attributesResponseSuccessJSON.put("success", true);
        attributesResponseSuccessJSON.put("responseText", "Operation succeded");
        writeBackToClient( new JSONSuccess(attributesResponseSuccessJSON) );
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

      @Override
      protected IStatus run(IProgressMonitor monitor) {
        IIndexService idx = IndexPlugin.getDefault().getIndexService();
        try {
          // Do the indexing
          setProperty(QN_RESULT, idx.synchronize(log, monitor));
        } catch (CoreException e) {
          return e.getStatus();
        }
        if (monitor.isCanceled()) {
          // Job was canceled
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testPaginationLastPage() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        ResultPage p = indexService.query(ctx, new LinkedList<ARestriction<?>>(), 2, 1000);
        assertEquals(3, p.getItems().size());
        assertEquals("Setting up property manager MBean and JMX layer", p.getItems().get(0).get(Log4JFieldProvider.FIELD_MESSAGE));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testContainsQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_MESSAGE,
            Operators.OPERATOR_CONTAINS, "recovery"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testNotContainsQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_MESSAGE,
            Operators.OPERATOR_NOT_CONTAINS, "recovery"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testEqualsQueryWithString() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_LOGGER, Operators.OPERATOR_EQUALS,
            "org.jnp.server.NamingBeanImpl"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testNotEqualsQueryWithString() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_LOGGER, Operators.OPERATOR_NOT_EQUALS,
            "org.jnp.server.NamingBeanImpl"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testBeginsWithQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_LOGGER, Operators.OPERATOR_BEGINS_WITH,
            "com.arjuna.ats.jbossatx.jta"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testNotBeginsWithQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_LOGGER, Operators.OPERATOR_NOT_BEGINS_WITH,
            "com.arjuna.ats.jbossatx.jta"));
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testBeforeQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        List<ARestriction<?>> ops = new LinkedList<ARestriction<?>>();
        ops.add(getRestrictionFactory().newRestriction(Log4JFieldProvider.FIELD_TIMESTAMP,
            Operators.OPERATOR_BEFORE, new Date(1248183795937L)));
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.