Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5231A7FFC for ; Wed, 3 Aug 2011 07:17:55 +0000 (UTC) Received: (qmail 42241 invoked by uid 500); 3 Aug 2011 07:17:55 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 42159 invoked by uid 500); 3 Aug 2011 07:17:50 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 42111 invoked by uid 99); 3 Aug 2011 07:17:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 07:17:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 07:17:41 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0DEC22388A66; Wed, 3 Aug 2011 07:17:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1153368 [4/4] - in /chemistry/opencmis/trunk: ./ chemistry-opencmis-dist/ chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/ chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/ chemistry-opencmis-server/che... Date: Wed, 03 Aug 2011 07:17:18 -0000 To: commits@chemistry.apache.org From: sklevenz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110803071720.0DEC22388A66@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp?rev=1153368&view=auto ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp (added) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp Wed Aug 3 07:17:14 2011 @@ -0,0 +1,236 @@ + +<%@ 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" %> + + + + + +Apache Chemistry OpenCMIS-InMemory Server + +<%! + private StoreManager getStoreManager(HttpServletRequest request) { + CallContext context = new DummyCallContext(); + CmisServiceFactory servicesFactory = (CmisServiceFactory) request.getSession().getServletContext().getAttribute( + "org.apache.chemistry.opencmis.servicesfactory"); + // AbstractServiceFactory factory = (AbstractServiceFactory) + CmisService service = servicesFactory.getService(context); + if (!(service instanceof InMemoryService)) + throw new RuntimeException("Illegal configuration, service must be of type InMemoryService."); + return ((InMemoryService) service).getStoreManager(); + } +%> + + + + Apache Chemistry Logo + +

OpenCMIS InMemory Server

+

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. +

+ +

Access Information

+

+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. +

+ +

Web Interface

+

+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. +

+ +

NOTICE

+

+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. +

+ +

Monitor

+

+ Current state of the server: +

+ + + +<% + StoreManager sm = getStoreManager(request); + for (String repId: sm.getAllRepositoryIds() ) { + out.println(""); + out.println(""); + } +%> +
Repository Id No. of objects
" + repId + "" + sm.getObjectStore(repId).getObjectCount() + "
+

 

+ + +<% + Runtime runtime = Runtime.getRuntime (); + long mb = 1048576; + long value; + value = runtime.totalMemory (); + value = (value + mb/2) / mb; + out.println(""); + out.println(""); + value = runtime.maxMemory (); + value = (value + mb/2) / mb; + out.println(""); + out.println(""); + value = runtime.freeMemory (); + value = (value + mb/2) / mb; + out.println(""); + out.println(""); + out.println(""); + out.println(""); +%> +
Java VM Size
Used Memory " + value + "MB
Max Memory " + value + "MB
Free Memory " + value + "MB
Processors " + runtime.availableProcessors() + "
+ +

Configuration

+

+ Important configuration settings +

+ + + + + + <% + String maxSize = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.MAX_CONTENT_SIZE_KB); + if (null == maxSize) + maxSize = "unlimited"; + else + maxSize += "KB"; + out.println(""); + %> + + + + <% + String cleanInterValStr = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.CLEAN_REPOSITORY_INTERVAL); + if (null == cleanInterValStr) + out.println(""); + else + out.println(""); + %> + + + + <% + out.println(""); + %> + + + + <% + 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(""); + %> + +
Setting Value
Max. allowed content size " + maxSize + "
Auto clean every - " + cleanInterValStr + " minutes
Time of deployment" + ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.DEPLOYMENT_TIME) + "
Next cleanup" + dateStr + "
+ +

More Information

+

+ Apache Chemistry web site +

+

+ CMIS page at OASIS +

+ + +
+

License Information

+This software is licensed under the + Apache 2.0 License +
+ + + ASF Logo + + + + \ No newline at end of file Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/pom.xml?rev=1153368&r1=1153367&r2=1153368&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/pom.xml (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/pom.xml Wed Aug 3 07:17:14 2011 @@ -21,85 +21,12 @@ chemistry-opencmis-server-inmemory OpenCMIS InMemory Server Implementation - war + jar ../../ - - - - org.apache.maven.plugins - maven-war-plugin - - - - - org.apache.chemistry.opencmis.server.inmemory - org.apache.chemistry.opencmis.server.inmemory - 0.0.1 - javax.servlet,javax.servlet.http,javax.servlet.resources - . - inmemory - - - - - - - ${project.groupId} - chemistry-opencmis-server-bindings - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.8 - - 2.0 - inmemory - - - src/main/webapp/WEB-INF/sun-jaxws.xml - 1 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/sun-jaxws.xml - - - src/main/webapp/WEB-INF/web.xml - 1 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/web.xml - - - src/main/webapp/WEB-INF/wsdl - 2 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/wsdl - - - src/main/webapp/css - 2 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/css - - - src/main/webapp/images - 2 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/images - - - src/main/webapp/web - 2 - WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web - - - - - - - ${project.groupId} @@ -125,7 +52,7 @@ ${project.groupId} chemistry-opencmis-server-bindings ${project.version} - war + jar ${project.groupId} @@ -135,7 +62,7 @@ org.antlr antlr-runtime - 3.1.3 + 3.2 javax.servlet Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/pom.xml?rev=1153368&r1=1153367&r2=1153368&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/pom.xml (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/pom.xml Wed Aug 3 07:17:14 2011 @@ -51,7 +51,7 @@ ${project.groupId} - chemistry-opencmis-server-bindings + chemistry-opencmis-server-bindings-war @@ -77,7 +77,7 @@ ${project.groupId} - chemistry-opencmis-server-bindings + chemistry-opencmis-server-bindings-war ${project.version} war Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/pom.xml?rev=1153368&r1=1153367&r2=1153368&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/pom.xml (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/pom.xml Wed Aug 3 07:17:14 2011 @@ -32,13 +32,14 @@ ../../pom.xml + jar + chemistry-opencmis-server-support OpenCMIS Server Support ../../ - Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml?rev=1153368&r1=1153367&r2=1153368&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml Wed Aug 3 07:17:14 2011 @@ -46,7 +46,7 @@ ${project.groupId} - chemistry-opencmis-server-inmemory + chemistry-opencmis-server-inmemory-war @@ -141,7 +141,7 @@ ${project.groupId} - chemistry-opencmis-server-inmemory + chemistry-opencmis-server-inmemory-war ${project.version} war Modified: chemistry/opencmis/trunk/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/pom.xml?rev=1153368&r1=1153367&r2=1153368&view=diff ============================================================================== --- chemistry/opencmis/trunk/pom.xml (original) +++ chemistry/opencmis/trunk/pom.xml Wed Aug 3 07:17:14 2011 @@ -181,7 +181,9 @@ chemistry-opencmis-client/chemistry-opencmis-client-bindings chemistry-opencmis-server/chemistry-opencmis-server-support chemistry-opencmis-server/chemistry-opencmis-server-bindings + chemistry-opencmis-server/chemistry-opencmis-server-bindings-war chemistry-opencmis-server/chemistry-opencmis-server-inmemory + chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war chemistry-opencmis-server/chemistry-opencmis-server-fileshare chemistry-opencmis-server/chemistry-opencmis-server-jcr chemistry-opencmis-test/chemistry-opencmis-test-fit @@ -191,11 +193,12 @@ chemistry-opencmis-test/chemistry-opencmis-test-browser chemistry-opencmis-test/chemistry-opencmis-test-browser-app chemistry-opencmis-workbench/chemistry-opencmis-workbench + chemistry-opencmis-osgi/chemistry-opencmis-osgi-client + chemistry-opencmis-osgi/chemistry-opencmis-osgi-server chemistry-opencmis-dist - UTF-8 1.5