org.apache.lokahi.core.controller
Class AdminBean

java.lang.Object
  extended by org.apache.lokahi.core.controller.AdminBean

public class AdminBean
extends java.lang.Object


Constructor Summary
AdminBean()
          Constructor
 
Method Summary
 void changeJvmAdminRole(java.util.Hashtable admin_jvms)
          This method changes the role of the machine:port supplied to primary/backup or alternate
 java.util.Hashtable getAllAdminInfo()
          This method returns a hashtable of the information retrieved from database.
 Instance getInstance()
           
 java.lang.String[] split(java.lang.String str, java.lang.String delim)
          This method takes a String and returns a String array, by splitting on the delimiter supplied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminBean

public AdminBean()
Constructor

Method Detail

getInstance

public Instance getInstance()

getAllAdminInfo

public java.util.Hashtable getAllAdminInfo()
This method returns a hashtable of the information retrieved from database.

Returns:
Hashtable - keys of this hashtable are 'PRIMARY', 'BACKUP' and 'ALTERNATE' and the values are the respective values of these admin JVMs in the database

changeJvmAdminRole

public void changeJvmAdminRole(java.util.Hashtable admin_jvms)
This method changes the role of the machine:port supplied to primary/backup or alternate

Parameters:
admin_jvms - - Hashtable with keys PRIMARY, BACKUP AND ALTERNATE, and values are respectively the machine:agentport combination to be updated in the database

split

public java.lang.String[] split(java.lang.String str,
                                java.lang.String delim)
This method takes a String and returns a String array, by splitting on the delimiter supplied

Parameters:
str - - String to be split
delim - - delimiter to split the String on
Returns:
- array of Strings, got by splitting the String passed