In this release, Administration Services Console initially opens up disconnected from any Essbase Administration Server. Your code can be notified when Essbase Administration Server is connected, is disconnecting, or has already disconnected. Your code can implement the EASServerListener interface to be notified of the change in the Essbase Administration Server state.
import com.essbase.eas.client.intf.EASServerListener; private EASServerListener listener = new EASServerListener() { public void ServerDisconnecting(String server) { // server is about to disconnect. } public void ServerDisconnected(String name) { // server is disconnected // disable menu items or Enterprise tree nodes when disconnected from the EAS server } public void ServerConnected(String name) { // enable menus // add Enterprise tree nodes } };
To add the EASServerListener to the console use the following code snippet.