Incomplete Sample Code


//any class can implement this and act like a load banalcing server

public interface LoadBalancingServer
{
//This method retrieves the data from the database
public void getData();

//This method populates the central datastructure(ArrayList)
public void populateData();

//This method creates & checks socket connection
//for each client machine
public void getStream();

/*This method distributes the data into an array
list for respective client machinefrom the
central database*/
public void shareData(int fop);

/*This method dispatches the data on an
ObjectOutputStream to the client machines*/
public void despatchMessage();

/*This method reads the client machine status
on an ObjectInputStream*/
public void getStatus();

/*This method updates the database based on
the status read from client machines*/
public int setStatus();

/*This method sets the capacity of respective
client machine based on the status read from
respective client*/
public void setCapacity(int cap);
}


 

  Java Alert Notification System Home Page

   Previous    Next  
 

UNIVERSAL TEACHER PUBLICATIONS
Web: universalteacherpublications.com, universalteacher.com, universalteacher4u.com