Posts

Cluster Computing & Grid Computing

Image
Cluster Computing A computer cluster is a group of linked computers, working together closely thus in many respects forming a single computer.  The components of a cluster are connected to each other through fast local area networks J Requirements for computing increasing fast.  More data to process. More compute intensive algorithms available. J   Approaches to supply demand Qualitative: Optimized algorithms, faster processors, more memory.  Quantitative: Cluster computing, grid computing, etc. J Cluster categorizations High Availability Cluster Load Balancing Cluster HPC Cluster J High Availability Clusters Failover Clusters, mainly implemented to improve the availability of service that cluster provides  They operates by having redundant nodes, upon failure the standby node take cares Types of High availability clusters: one way & two way  Often used for critical  databases, network files sharing an...

Access Modifiers in java

Access Modifiers in java Java provides a number of access modifiers to set access levels for classes, variables, methods, and constructors. The access modifiers in java specify accessibility (scope) of a data member, method, constructor or class. Example 1:- Providing access Suppose you have a method to add two numbers. Anyone wants to use this method if it is already written. So this should be visible and available for everyone's use. Example 2:- Restricting access You have bank account class and in that you have balance as instance variable. Now in this case it is okay for everyone to see balance of your bank account. But it is really not okay that someone can modify your account balance. So here you need to restrict everyone from modifying your account balance except bank. Access Modifiers Types   The basic Accessibility Modifiers are of 4 types in Java. They are 1.      public 2.      protected 3. ...