forked from voldemort/voldemort
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add version and update time to client registry
- Loading branch information
Lei Gao
committed
Jun 27, 2012
1 parent
7b3c8e2
commit dbc2f54
Showing
11 changed files
with
872 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Manifest-Version: 1.0 | ||
Ant-Version: Apache Ant 1.7.1 | ||
Created-By: 20.8-b03-424 (Apple Inc.) | ||
Implementation-Title: Voldemort | ||
Implementation-Version: 0.90.1 | ||
Implementation-Vendor: LinkedIn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package voldemort.utils; | ||
|
||
import java.io.FileInputStream; | ||
import java.io.IOException; | ||
import java.util.Properties; | ||
|
||
import org.apache.log4j.Logger; | ||
|
||
public class ManifestFileReader { | ||
|
||
protected static final Logger logger = Logger.getLogger(ManifestFileReader.class); | ||
|
||
private static String MANIFEST_FILE = "META-INF/MANIFEST.MF"; | ||
private static String RELEASE_VERSION_KEY = "Implementation-Version"; | ||
|
||
public static String getReleaseVersion() { | ||
String version = null; | ||
Properties properties = new Properties(); | ||
try { | ||
properties.load(new FileInputStream(MANIFEST_FILE)); | ||
version = properties.getProperty(RELEASE_VERSION_KEY); | ||
} catch(IOException e) { | ||
logger.warn("Unable to load voldemort release version due to the following error:", e); | ||
} | ||
return version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.