The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I need to make a custom memory appender for java using log4j.
Here is some specifications.
MemoryAppender stores all log entries in a list, they are not printed at theconsole
logs can be accessed using the following API:
java.util.List<org.apache.log4j.spi.LoggingEvent> MemoryAppender.getLogs()
c. the list returned by getLogs() should not be modifiable
MemoryAppender has a property maxSize , if the number of logs reaches
maxSize , the references to old logs are moved to a secondary list. getLogs()
returns the merged content of both list (primary and secondary). The use of the
secondary list should be transparent, i.e., it should not be visible to the outside,
and must not create memory leaks. I.e., if the amount of information logged
becomes so large that the JVM might run out of memory, log entries should be
culled automatically.
e. the constructor of MemoryAppender can be used to set the (primary) list to be
used to store logs
Â
Assignment 2
Modify the Test Score application.(text book murach's java se6 chapt.2)In this exercise, you'll modify the Test Score application that's presented infigure 2-19. That will give you a chance to write some code of your own.1. Open the file named TestScoreApp.java in the c:java1.6ch02 directory, andsave the program as ModifiedTestScoreApp.java in the same directory. Then,change the class name to ModifiedTestScoreApp and compile the class.2. Test this application with valid data to see how it works. Then, test theapplication with invalid data to see what will cause exceptions. Note that if youenter a test score like 125, the program ends, even though the instructions saythat the program ends when you enter 999.3. Modify the while statement so the program only ends when you enter 999.Then, test the program to see how this works.4. Modify the if statement so it displays an error message like "Invalid entry, notcounted" if the user enters a score that's greater than 100 but isn't 999. Then,test this change.
Â
Assignment 3
Question:IT 511 Final Project Milestone Three: Programmer-Defined Class Guidelines and RubricÂ
Your final project for this course is the creation of a Virtual World Java application that results in a virtual world, complete with an object that will act as a human clone. (See the Final Project Document for more information.) You created the initial version of your MyClone class in Milestone One and Java code that created an Array of String messages in Milestone Two. In this milestone, due in Module Seven, you will finish your MyClone class and create another class of your choice.Â
The following critical elements will be addressed in this submission:
Â
Partial class diagram for the MyClone object:
|
MyClone |
|
-firstName -lastName |
|
introduction() |
Requirements of Submission: Written components of projects must follow these formatting guidelines when applicable: double spacing, 12-point Times New Roman font, one-inch margins, and discipline-appropriate citations.
Â
Â
-----------