donaldp 01/12/08 23:07:15
Modified: src/java/org/apache/avalon/phoenix/components/embeddor
DefaultEmbeddor.java
src/java/org/apache/avalon/phoenix/interfaces
EmbeddorMBean.java
Log:
Altered management interface of embeddor.
getBuildData -> getBuild
getUpTime -> getUpTimeInMillis
Added getStartTime()
Revision Changes Path
1.39 +13 -2
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/embeddor/DefaultEmbeddor.java
Index: DefaultEmbeddor.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/embeddor/DefaultEmbeddor.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- DefaultEmbeddor.java 2001/12/08 11:41:51 1.38
+++ DefaultEmbeddor.java 2001/12/09 07:07:15 1.39
@@ -10,6 +10,7 @@
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
+import java.util.Date;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.excalibur.io.ExtensionFileFilter;
@@ -294,12 +295,22 @@
}
/**
+ * Get the date at which this server started.
+ *
+ * @return the date at which this server started
+ */
+ public Date getStartTime()
+ {
+ return new Date( m_startTime );
+ }
+
+ /**
* Retrieve the number of millisecond
* the server has been up.
*
* @return the the number of millisecond the server has been up
*/
- public long getUpTime()
+ public long getUpTimeInMillis()
{
return System.currentTimeMillis() - m_startTime;
}
@@ -322,7 +333,7 @@
*
* @return the string describing build
*/
- public String getBuildData()
+ public String getBuild()
{
return "(" + Constants.DATE + ")";
}
1.3 +11 -2
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/EmbeddorMBean.java
Index: EmbeddorMBean.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/EmbeddorMBean.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- EmbeddorMBean.java 2001/12/08 11:41:51 1.2
+++ EmbeddorMBean.java 2001/12/09 07:07:15 1.3
@@ -7,6 +7,8 @@
*/
package org.apache.avalon.phoenix.interfaces;
+import java.util.Date;
+
/**
* This is the interface via which the Management interface interacts
* with the Embeddor.
@@ -35,12 +37,19 @@
String getHomeDirectory();
/**
+ * Get the date at which this server started.
+ *
+ * @return the date at which this server started
+ */
+ Date getStartTime();
+
+ /**
* Retrieve the number of millisecond
* the server has been up.
*
* @return the the number of millisecond the server has been up
*/
- long getUpTime();
+ long getUpTimeInMillis();
/**
* Retrieve a string identifying version of server.
@@ -57,7 +66,7 @@
*
* @return the string describing build
*/
- String getBuildData();
+ String getBuild();
/**
* Request the Embeddor shutsdown.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>