Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config Integration and Features #72

Merged
merged 1 commit into from
Feb 27, 2015
Merged

Config Integration and Features #72

merged 1 commit into from
Feb 27, 2015

Conversation

csubj
Copy link
Member

@csubj csubj commented Feb 23, 2015

+added default.config file, where the node can be configured to run from.
+Node Populates from configurations
+Config now has a "ReadOnly" functionality so it can be used when a node does not exist.
+Keys are now standarized when get, put, and load are called. This keeps things consistent.
+Some integration with other classes, but needs to be fleshed out more will bring this up at the meeting.

Addresses #36 and #30

@annak3
Copy link
Contributor

annak3 commented Feb 23, 2015

code reviewed config and unit test and didn't find any issues there

@@ -19,7 +20,7 @@
/**
* The size of an overlay address, in bytes.
*/
public static final int DEFAULT_ADDRESS_SIZE = 16;
public static final int DEFAULT_ADDRESS_SIZE = (int) ConfigReadOnly.get("default.config", "default_address_size");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there has to be a better design pattern for this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I 100% agree. Ideas?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a static method getReadOnly in the regular config class?

+added default.config file, where the node can be configured to run from.
+Node Populates from configurations
+Config now has a "ReadOnly" functionality so it can be used when a node does not exist.
+Keys are now standarized when get, put, and load are called. This keeps things consistent.
+Integration with other classes.
csubj added a commit that referenced this pull request Feb 27, 2015
Config Integration and Features
@csubj csubj merged commit e52e5d7 into master Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants