[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/test ...

Ben Wang bwang at jboss.com
Mon Oct 30 23:33:55 EST 2006


  User: bwang   
  Date: 06/10/30 23:33:55

  Modified:    tests-50/functional/org/jboss/cache/pojo/test  Resource.java
  Log:
  Test remote node event notification as the origination is remote.
  
  Revision  Changes    Path
  1.3       +18 -2     JBossCache/tests-50/functional/org/jboss/cache/pojo/test/Resource.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Resource.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/test/Resource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- Resource.java	27 Jun 2006 09:19:31 -0000	1.2
  +++ Resource.java	31 Oct 2006 04:33:55 -0000	1.3
  @@ -7,17 +7,23 @@
   
   package org.jboss.cache.pojo.test;
   
  +import java.io.Serializable;
  +
   /**
    * Test class for PojoCache using annotation. This represents a special resource
    * type that can be declared @Transient. That is, it is neither PojoCacheable nor
    * Serializable.
    *
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
  + at org.jboss.cache.pojo.annotation.PojoCacheable
   public class Resource
   {
      String connection = null;
      String name = null;
  +// Can turin it on for performance optimization
  +//   @org.jboss.cache.pojo.annotation.Serializable
  +   byte[] bin = null;
   
      public String getName()
      {
  @@ -39,8 +45,18 @@
         this.connection = connection;
      }
   
  +   public byte[] getByte()
  +   {
  +      return bin;
  +   }
  +
  +   public void setByte(byte[] b)
  +   {
  +      bin = b;
  +   }
  +
      public String toString()
      {
  -      return "name=" + getName() + ", type=" + getConnection();
  +      return "name=" + getName() + ", type=" + getConnection() + " bytes= " +bin.toString();
      }
   }
  
  
  



More information about the jboss-cvs-commits mailing list