You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by hc...@apache.org on 2005/01/29 11:14:40 UTC

cvs commit: jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/core CacheType.java

hchar       2005/01/29 02:14:40

  Added:       sandbox/yajcache/src/org/apache/jcs/yajcache/core
                        CacheType.java
  Log:
  cache types
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/core/CacheType.java
  
  Index: CacheType.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License")
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.jcs.yajcache.core;
  
  import org.apache.jcs.yajcache.soft.SoftRefCache;
  import org.apache.jcs.yajcache.soft.SoftRefCacheSafe;
  import org.apache.jcs.yajcache.soft.SoftRefFileCache;
  import org.apache.jcs.yajcache.soft.SoftRefFileCacheSafe;
  
  import org.apache.jcs.yajcache.lang.annotation.*;
  
  /**
   * @author Hanson Char
   */
  // @CopyRightApache
  // http://www.netbeans.org/issues/show_bug.cgi?id=53704
  public enum CacheType {
      SOFT_REFERENCE,
      SOFT_REFERENCE_SAFE,
      SOFT_REFERENCE_FILE,
      SOFT_REFERENCE_FILE_SAFE;
  
      <V> ICache<V> createCache(String name, @NonNullable Class<V> valueType)
      {
          switch(this) {
              case SOFT_REFERENCE:
                  return new SoftRefCache<V>(name, valueType);
              case SOFT_REFERENCE_SAFE:
                  return new SoftRefCacheSafe<V>(name, valueType);
              case SOFT_REFERENCE_FILE:
                  return new SoftRefFileCache<V>(name, valueType);
              case SOFT_REFERENCE_FILE_SAFE:
                  return new SoftRefFileCacheSafe<V>(name, valueType);
          }
          throw new AssertionError(this);
      }
      <V> ICacheSafe<V> createSafeCache(String name, @NonNullable Class<V> valueType)
      {
          switch(this) {
              case SOFT_REFERENCE_SAFE:
                  return new SoftRefCacheSafe<V>(name, valueType);
              case SOFT_REFERENCE_FILE_SAFE:
                  return new SoftRefFileCacheSafe<V>(name, valueType);
          }
          throw new UnsupportedOperationException("");
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org


Copyright 2005+

Posted by Hanson Char <ha...@gmail.com>.
All yajcache code exists since 2005, so I suppose I should change all
files to 2005 dropping 2004 or anything before altogether.

H

On Sat, 29 Jan 2005 21:24:51 +1100, Scott Eade <se...@apache.org> wrote:
> hchar@apache.org wrote:
> > hchar       2005/01/29 02:14:40
> >
> >   Added:       sandbox/yajcache/src/org/apache/jcs/yajcache/core
> >                         CacheType.java
> >   Log:
> >   cache types
> >
> >   Revision  Changes    Path
> >   1.1                  jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/core/CacheType.java
> >
> >   Index: CacheType.java
> >   ===================================================================
> >   /*
> >    * Copyright 2001-2004 The Apache Software Foundation.
> 
> If it is a new file the copyright should be for 2005 only - you cannot
> indicate a copyright for a period prior to the existence of the code.
> On subsequent modification you should extend the copyright to the
> current year (e.g. a file with just "2004" would become "2004 - 2005".
> 
> Scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org


Re: Failure in Mailing List Archive

Posted by Scott Eade <se...@apache.org>.
Hanson Char wrote:

>Does anyone has a clue as to why clicking on the mailing list archive URL 
>
>http://nagoya.apache.org/eyebrowse/SummarizeList?listName=turbine-jcs-dev@jakarta.apache.org
>  
>
The server "nagoya" is going away soon - references to it need top be 
updated to the replacement servers, in this case "mail-archives".

>from the JCS web site will yield a stack trace ?
>
>And how this can be fixed ?
>  
>
It looks like there is a problem on the server at present.  Someone from 
infrastructure@ will no doubt jump to it before too long.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org


Failure in Mailing List Archive

Posted by Hanson Char <ha...@gmail.com>.
Does anyone has a clue as to why clicking on the mailing list archive URL 

http://nagoya.apache.org/eyebrowse/SummarizeList?listName=turbine-jcs-dev@jakarta.apache.org

from the JCS web site will yield a stack trace ?

And how this can be fixed ?

H

VelocityServlet: Error processing the template

Unable to instantiate concrete database mapper
org.tigris.eyebrowse.MySQLEyebrowseDb: Cannot connect to Database
jdbc:mysql://localhost:3306/eyebrowse as eyebrowse
org.apache.velocity.exception.VelocityException: Unable to instantiate
concrete database mapper org.tigris.eyebrowse.MySQLEyebrowseDb: Cannot
connect to Database jdbc:mysql://localhost:3306/eyebrowse as eyebrowse
	at org.tigris.eyebrowse.servlets.EyebrowseServlet.handleRequest(Unknown Source)
	at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:396)
	at org.tigris.eyebrowse.servlets.EyebrowseServlet.doRequest(Unknown Source)
	at org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:355)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:534)

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org


Re: cvs commit: jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/core CacheType.java

Posted by Scott Eade <se...@apache.org>.
hchar@apache.org wrote:
> hchar       2005/01/29 02:14:40
> 
>   Added:       sandbox/yajcache/src/org/apache/jcs/yajcache/core
>                         CacheType.java
>   Log:
>   cache types
>   
>   Revision  Changes    Path
>   1.1                  jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/core/CacheType.java
>   
>   Index: CacheType.java
>   ===================================================================
>   /*
>    * Copyright 2001-2004 The Apache Software Foundation.

If it is a new file the copyright should be for 2005 only - you cannot 
indicate a copyright for a period prior to the existence of the code. 
On subsequent modification you should extend the copyright to the 
current year (e.g. a file with just "2004" would become "2004 - 2005".

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org