%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="java.util.Date, java.text.SimpleDateFormat, java.util.Locale, java.util.Calendar" %> <%@ page import="org.apache.chemistry.opencmis.inmemory.storedobj.api.StoreManager" %> <%@ page import="org.apache.chemistry.opencmis.commons.server.CallContext" %> <%@ page import="org.apache.chemistry.opencmis.inmemory.DummyCallContext" %> <%@ page import="org.apache.chemistry.opencmis.commons.server.CmisServiceFactory" %> <%@ page import="org.apache.chemistry.opencmis.commons.server.CmisService" %> <%@ page import="org.apache.chemistry.opencmis.inmemory.server.InMemoryService" %> <%@ page import="org.apache.chemistry.opencmis.inmemory.ConfigConstants" %> <%@ page import="org.apache.chemistry.opencmis.inmemory.ConfigurationSettings" %>
Your server is up and running.
The OpenCMIS InMemory Server is a CMIS server for development and test purposes. All objects are hold in memory and will be lost after shutdown.
You have to use a CMIS client to use this application. An example for such a client is the CMIS Workbench.
WS (SOAP) Binding: All Services
AtomPub Binding: <% String reqStr = request.getRequestURL().toString(); out.println(reqStr.substring(0, reqStr.lastIndexOf('/')+1) + "atom"); %>
Authentication: Basic Authentication (user name and password are arbitrary) Note: Authentication is optional and only informational. User names are stored in properties (createdBy, etc.), password is not required. The server does not perform any kind of secure authentication.
The OpenCMIS web interface is simple web interface to access the repository. Please note that this is not the usual way to access the repository. Usually you will use a client application supporting the CMIS specification like the CMIS workbench.
This is an unsupported and experimental service. Any use is at your own risk.
This service is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the license below for more information.
Current state of the server:
Repository Id | No. of objects | " + repId + " | "); out.println("" + sm.getObjectStore(repId).getObjectCount() + " | "); } %>
---|
Java VM | Size |
---|---|
Used Memory | "); out.println("" + value + "MB |
Max Memory | "); out.println("" + value + "MB |
Free Memory | "); out.println("" + value + "MB | "); out.println("
Processors | "); out.println("" + runtime.availableProcessors() + " |
Important configuration settings
Setting | Value | |
---|---|---|
Max. allowed content size | <% String maxSize = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.MAX_CONTENT_SIZE_KB); if (null == maxSize) maxSize = "unlimited"; else maxSize += "KB"; out.println("" + maxSize + " | "); %>|
Auto clean every | <% String cleanInterValStr = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.CLEAN_REPOSITORY_INTERVAL); if (null == cleanInterValStr) out.println("- | "); else out.println("" + cleanInterValStr + " minutes | "); %>
Time of deployment | <% out.println("" + ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.DEPLOYMENT_TIME) + " | "); %>|
Next cleanup | <% String dateStr; Long interval = ConfigurationSettings.getConfigurationValueAsLong(ConfigConstants.CLEAN_REPOSITORY_INTERVAL); long diff = 0; if (null == interval) dateStr = "Never"; else { try { Date now = new Date(); Calendar calNow = Calendar.getInstance(); Calendar calNextClean = Calendar.getInstance(); calNow.setTime(now); SimpleDateFormat formatter ; Date deploy; formatter = new SimpleDateFormat("EEE MMM dd hh:mm:ss a z yyyy", Locale.US); deploy = formatter.parse(ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.DEPLOYMENT_TIME)); calNextClean.setTime(deploy); while (calNextClean.before(calNow)) calNextClean.add(Calendar.MINUTE, interval.intValue()); dateStr = formatter.format(calNextClean.getTime()); diff = calNextClean.getTimeInMillis() - calNow.getTimeInMillis(); } catch (Exception e) { dateStr = e.getMessage(); } } if (diff > 0) dateStr += " (in " + diff / 60000 + "min, " + ((diff / 1000) % 60) + "s)"; // Date deploy = new Date(Date.parse(); out.println("" + dateStr + " | "); %>