You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by as...@apache.org on 2002/02/18 06:56:24 UTC
cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine Attributes.java
asmuts 02/02/17 21:56:24
Modified: src/java/org/apache/stratum/jcs/engine/behavior
IAttributes.java
src/java/org/apache/stratum/jcs/engine Attributes.java
Log:
should use ElementAttributes instead of the old attributes class. it is much cleaner.
just setting the stage for conversion
Revision Changes Path
1.6 +22 -22 jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/behavior/IAttributes.java
Index: IAttributes.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/behavior/IAttributes.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- IAttributes.java 16 Feb 2002 02:37:22 -0000 1.5
+++ IAttributes.java 18 Feb 2002 05:56:24 -0000 1.6
@@ -11,19 +11,19 @@
public interface IAttributes
{
- // remove
- //static int DISTRIBUTE = 1; // lateral
- static int LATERAL = 1;
- // lateral
- //static int NOFLUSH = 2;
- //static int REPLY = 3;
- //static int SYNCHRONIZE = 4;
- static int SPOOL = 5;
- //static int GROUP_TTL_DESTROY = 6;
- //static int ORIGINAL = 7;
- static int REMOTE = 8;
- // central rmi store
- static int ETERNAL = 8;
+// // remove
+// //static int DISTRIBUTE = 1; // lateral
+// static int LATERAL = 1;
+// // lateral
+// //static int NOFLUSH = 2;
+// //static int REPLY = 3;
+// //static int SYNCHRONIZE = 4;
+// static int SPOOL = 5;
+// //static int GROUP_TTL_DESTROY = 6;
+// //static int ORIGINAL = 7;
+// static int REMOTE = 8;
+// // central rmi store
+// static int ETERNAL = 8;
/**
* Sets the version attribute of the IAttributes object
@@ -41,12 +41,12 @@
public void setTimeToLive( long ttl );
- /**
- * Sets the defaultTimeToLive attribute of the IAttributes object
- *
- * @param ttl The new defaultTimeToLive value
- */
- public void setDefaultTimeToLive( long ttl );
+// /**
+// * Sets the defaultTimeToLive attribute of the IAttributes object
+// *
+// * @param ttl The new defaultTimeToLive value
+// */
+// public void setDefaultTimeToLive( long ttl );
/**
@@ -108,8 +108,8 @@
public long getTimeToLive();
- /** Description of the Method */
- public long timeToSeconds( int days, int hours, int minutes, int seconds )
- throws InvalidArgumentException;
+// /** Description of the Method */
+// public long timeToSeconds( int days, int hours, int minutes, int seconds )
+// throws InvalidArgumentException;
}
1.8 +20 -16 jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/Attributes.java
Index: Attributes.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/Attributes.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Attributes.java 16 Feb 2002 02:37:22 -0000 1.7
+++ Attributes.java 18 Feb 2002 05:56:24 -0000 1.8
@@ -239,15 +239,15 @@
}
- /**
- * Sets the defaultTimeToLive attribute of the Attributes object
- *
- * @param ttl The new defaultTimeToLive value
- */
- public void setDefaultTimeToLive( long ttl )
- {
- this.default_ttl = ttl;
- }
+// /**
+// * Sets the defaultTimeToLive attribute of the Attributes object
+// *
+// * @param ttl The new defaultTimeToLive value
+// */
+// public void setDefaultTimeToLive( long ttl )
+// {
+// this.default_ttl = ttl;
+// }
/**
@@ -330,7 +330,10 @@
/**
- * Gets the timeToLive attribute of the Attributes object
+ * Gets the timeToLive attribute of the Attributes object.
+ * This should be called maxLifeSeconds since it is the number of
+ * seconds teh item will be available after creation, not the time
+ * from now. Need another method. This one can calculate the time left.
*
* @return The timeToLive value
*/
@@ -340,12 +343,13 @@
}
- /** Description of the Method */
- public long timeToSeconds( int days, int hours, int minutes, int seconds )
- throws InvalidArgumentException
- {
- return 5;
- }
+// NOT NECESSARY will be using max life not time left pattern
+// /** Description of the Method */
+// public long timeToSeconds( int days, int hours, int minutes, int seconds )
+// throws InvalidArgumentException
+// {
+// return 5;
+// }
/** Description of the Method */
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>