Package lotus.domino

Examples of lotus.domino.Session.evaluate()


          Session session = ExtLibUtil.getCurrentSessionAsSigner();
          String server = session.getServerName();
          String nabCandidates = session.getEnvironmentString("names",true); // There is a possibility that the variable is names=names.nsf,somotherdb.nsf
          String nab = StringUtil.isNotEmpty(nabCandidates) ? StringUtil.splitString(nabCandidates,',')[0] : "names.nsf";
          String formula = "@DbLookup(\"Notes\":\"Cache\";\""+server+"\":\""+nab+"\";\"($Servers)\";\""+server+"\";\"HTTP_SSLPort\";[FAILSILENT])";
          Vector<?> result = session.evaluate(formula);
          if(result.size()==1) {
            Object port = result.get(0);
            if(port instanceof Number) {
              httpsPort = ((Number)port).intValue();
            } else if(port instanceof Number) {
View Full Code Here


      @SuppressWarnings("unused")
      long startEvaluate = System.currentTimeMillis();
      try {
        time = System.currentTimeMillis();
        for (int i = 1; i < 10000; i++) {
          v = sess.evaluate(str);
        }
        time = System.currentTimeMillis() - time;
        System.err.println("[NotesNative] 10000x calling session.evaluate\ttook " + time + "ms.");
        System.out.println("Result:\t" + v);
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.