Examples of endCollection()


Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

          new Object[] { "name", "dateFormat", "value", db.getStorage().getConfiguration().dateFormat }, new Object[] { "name",
              "dateTimeFormat", "value", db.getStorage().getConfiguration().dateTimeFormat }, new Object[] { "name",
              "localeCountry", "value", db.getStorage().getConfiguration().localeCountry }, new Object[] { "name",
              "localeLanguage", "value", db.getStorage().getConfiguration().localeLanguage }, new Object[] { "name",
              "definitionVersion", "value", db.getStorage().getConfiguration().version });
      json.endCollection(2, true);

      json.beginCollection(2, true, "properties");
      if (db.getStorage().getConfiguration().properties != null)
        for (OStorageEntryConfiguration entry : db.getStorage().getConfiguration().properties) {
          if (entry != null) {
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

            json.writeAttribute(4, false, "name", entry.name);
            json.writeAttribute(4, false, "value", entry.value);
            json.endObject(3, true);
          }
        }
      json.endCollection(2, true);

      json.endObject(1, true);
      json.endObject();
      json.flush();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        writeField(json, 2, "lastExecutionTime", c.protocol.getData().lastCommandExecutionTime);
        writeField(json, 2, "totalWorkingTime", c.protocol.getData().totalCommandExecutionTime);
        writeField(json, 2, "connectedOn", connectedOn);
        json.endObject(2);
      }
      json.endCollection(1, false);

      json.beginCollection(1, true, "dbs");
      Map<String, OResourcePool<String, ODatabaseDocumentTx>> dbPool = OSharedDocumentDatabase.getDatabasePools();
      for (Entry<String, OResourcePool<String, ODatabaseDocumentTx>> entry : dbPool.entrySet()) {
        for (ODatabaseDocumentTx db : entry.getValue().getResources()) {
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

          writeField(json, 2, "open", db.isClosed() ? "closed" : "open");
          writeField(json, 2, "storage", db.getStorage().getClass().getSimpleName());
          json.endObject(2);
        }
      }
      json.endCollection(1, false);

      json.beginCollection(1, true, "storages");
      OStorage[] storages = OServerMain.server().getManagedServer().getOpenedStorages();
      for (OStorage s : storages) {
        json.beginObject(2);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        writeField(json, 2, "type", s.getClass().getSimpleName());
        writeField(json, 2, "path", s instanceof OStorageLocal ? ((OStorageLocal) s).getStoragePath().replace('\\', '/') : "");
        writeField(json, 2, "activeUsers", s.getUsers());
        json.endObject(2);
      }
      json.endCollection(1, false);

      json.beginCollection(2, true, "properties");
      for (OServerEntryConfiguration entry : OServerMain.server().getConfiguration().properties) {
        json.beginObject(3, true, null);
        json.writeAttribute(4, false, "name", entry.name);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        json.beginObject(3, true, null);
        json.writeAttribute(4, false, "name", entry.name);
        json.writeAttribute(4, false, "value", entry.value);
        json.endObject(3, true);
      }
      json.endCollection(2, true);

      json.beginObject(1, true, "profiler");
      json.beginCollection(2, true, "hookValues");
      for (String h : OProfiler.getInstance().getHooks()) {
        json.beginObject(3);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        json.beginObject(3);
        writeField(json, 3, "name", h);
        writeField(json, 3, "value", OProfiler.getInstance().getHookValue(h));
        json.endObject(3);
      }
      json.endCollection(2, false);
     
      json.beginCollection(2, true, "counters");
      for (String c : OProfiler.getInstance().getCounters()) {
        json.beginObject(3);
        writeField(json, 3, "name", c);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        json.beginObject(3);
        writeField(json, 3, "name", c);
        writeField(json, 3, "value", OProfiler.getInstance().getCounter(c));
        json.endObject(3);
      }
      json.endCollection(2, false);

      OProfilerEntry pEntry;

      json.beginCollection(2, true, "stats");
      for (String s : OProfiler.getInstance().getStats()) {
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        writeField(json, 3, "maxElapsed", pEntry.max);
        writeField(json, 3, "lastElapsed", pEntry.last);
        writeField(json, 3, "totalElapsed", pEntry.total);
        json.endObject(3);
      }
      json.endCollection(2, false);

      json.beginCollection(2, true, "chronos");
      for (String c : OProfiler.getInstance().getChronos()) {
        pEntry = OProfiler.getInstance().getChrono(c);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.endCollection()

        writeField(json, 3, "maxElapsed", pEntry.max);
        writeField(json, 3, "lastElapsed", pEntry.last);
        writeField(json, 3, "totalElapsed", pEntry.total);
        json.endObject(3);
      }
      json.endCollection(2, false);
      json.endObject(1);

      json.endObject();

      sendTextContent(iRequest, OHttpUtils.STATUS_OK_CODE, "OK", null, OHttpUtils.CONTENT_JSON, jsonBuffer.toString());
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.