Skip navigation links


com.essbase.eas.admin.defs
Class DefaultAdminServer

java.lang.Object
  extended by com.essbase.eas.admin.defs.DefaultAdminServer

All Implemented Interfaces:
AdminServer
Direct Known Subclasses:
Server

public class DefaultAdminServer
extends java.lang.Object
implements AdminServer

This is an implementation of Server.

Version:
1.00, 12/10/2000
Author:
Hung Vo
See Also:
Server

Field Summary
protected  java.util.List users
           

 

Constructor Summary
DefaultAdminServer()
           
DefaultAdminServer(java.lang.String value)
           
DefaultAdminServer(java.lang.String value, boolean isConnected)
           
DefaultAdminServer(java.lang.String value, java.lang.String sType, java.lang.String sessType)
           
DefaultAdminServer(java.lang.String value, java.lang.String sType, java.lang.String sessType, boolean isConnected)
           

 

Method Summary
 void addServerListener(AdminServerListener l)
          add a listener to the server's collection of listeners.
 void addUser(AdminUser value)
          adds a user to this server's collection.
protected  void fireServerConnectedEvent()
          fires server connected events to the listeners.
protected  void fireServerDisconnectingEvent()
          fires server disconnecting events to the listeners.
protected  void fireServerStatusUpdateEvent()
          fires server status update events to the listeners.
protected  void fireUserAddedEvent(AdminUser user)
          fires server user added events to the listeners.
protected  void fireUserRemovedEvent(AdminUser user)
          fires server user removed events to the listeners.
protected  void fireUserRenamedEvent(AdminUser user)
          fires server user renamed events to the listeners.
 java.lang.String getName()
          returns the name associated with this server.
 AdminServerProperties getProperties()
          Deprecated.  
 java.lang.String getServerType()
          get the type for this server
 java.lang.String getSessionType()
          get the sessionType for this server
 java.util.ArrayList getUserList()
           
 boolean isConnected()
          Return the connected state of this server
static boolean isDefaultPropertyCheckingSupported()
          This property is used to check if a default value is supported by this class.
static boolean isDefaultValue(DefaultAdminServer server)
          Checks if the value in the argument is the same as the default value defined for this class.
 boolean isRunning()
           
 boolean isSslEnabled()
           
 boolean isUnknownHost()
          An unknown host is either not running or doesn't respond
 AdminUser locateUser(java.lang.String username)
          Locate a user in the server
 void removeServerListener(AdminServerListener l)
          removes an event listener from a server
 void removeUser(AdminUser value)
          Remove user from the list.
 void renameUser(AdminUser value, java.lang.String newName)
          Rename a user in the list.
 void setConnected(boolean isConnected)
          Set the connected state of this server and fire the correct event
 void setName(java.lang.String value)
          sets the name associated with this server.
 void setProperties(AdminServerProperties props)
          implementation of the Server interface setServerProperties() method.
 void setRunning(boolean isRunning)
          This host is running an Administration Server
 void setServerType(java.lang.String value)
          set the type for this server
 void setSessionType(java.lang.String value)
          set the sessionType for this server
 void setSslEnabled(boolean enable)
           
 void setUnknownHost(boolean unknown)
          Set the status of this server
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

users

protected java.util.List users

Constructor Detail

DefaultAdminServer

public DefaultAdminServer()

DefaultAdminServer

public DefaultAdminServer(java.lang.String value)

DefaultAdminServer

public DefaultAdminServer(java.lang.String value,
                          boolean isConnected)

DefaultAdminServer

public DefaultAdminServer(java.lang.String value,
                          java.lang.String sType,
                          java.lang.String sessType)

DefaultAdminServer

public DefaultAdminServer(java.lang.String value,
                          java.lang.String sType,
                          java.lang.String sessType,
                          boolean isConnected)

Method Detail

getName

public java.lang.String getName()
Description copied from interface: AdminServer
returns the name associated with this server.
Specified by:
getName in interface AdminServer
Returns:
the name of this server

getProperties

public AdminServerProperties getProperties()
Deprecated. 
Returns:

setName

public void setName(java.lang.String value)
Description copied from interface: AdminServer
sets the name associated with this server.
Specified by:
setName in interface AdminServer
Parameters:
value - the name of this server

getSessionType

public java.lang.String getSessionType()
Description copied from interface: AdminServer
get the sessionType for this server
Specified by:
getSessionType in interface AdminServer
Returns:

setSessionType

public void setSessionType(java.lang.String value)
Description copied from interface: AdminServer
set the sessionType for this server
Specified by:
setSessionType in interface AdminServer
Parameters:
value -

getServerType

public java.lang.String getServerType()
Description copied from interface: AdminServer
get the type for this server
Specified by:
getServerType in interface AdminServer
Returns:

setServerType

public void setServerType(java.lang.String value)
Description copied from interface: AdminServer
set the type for this server
Specified by:
setServerType in interface AdminServer
Parameters:
value -

isConnected

public boolean isConnected()
Return the connected state of this server
Specified by:
isConnected in interface AdminServer
Returns:
true if connected

setConnected

public void setConnected(boolean isConnected)
Set the connected state of this server and fire the correct event
Specified by:
setConnected in interface AdminServer
Parameters:
isConnected -

isRunning

public boolean isRunning()
Specified by:
isRunning in interface AdminServer
Returns:

setRunning

public void setRunning(boolean isRunning)
This host is running an Administration Server
Specified by:
setRunning in interface AdminServer
Parameters:
isRunning -

isUnknownHost

public boolean isUnknownHost()
An unknown host is either not running or doesn't respond
Specified by:
isUnknownHost in interface AdminServer
Returns:
true if the host is not reachable or unknown

setUnknownHost

public void setUnknownHost(boolean unknown)
Set the status of this server
Specified by:
setUnknownHost in interface AdminServer
Parameters:
unknown -

getUserList

public java.util.ArrayList getUserList()
Returns:
the list of users

addUser

public void addUser(AdminUser value)
             throws DuplicateUserException
Description copied from interface: AdminServer
adds a user to this server's collection.
Specified by:
addUser in interface AdminServer
Throws:
DuplicateUserException

locateUser

public AdminUser locateUser(java.lang.String username)
Locate a user in the server
Parameters:
username -
Returns:
the AdminUser for the user

removeUser

public void removeUser(AdminUser value)
Remove user from the list.

renameUser

public void renameUser(AdminUser value,
                       java.lang.String newName)
Rename a user in the list.

addServerListener

public void addServerListener(AdminServerListener l)
add a listener to the server's collection of listeners.

removeServerListener

public void removeServerListener(AdminServerListener l)
removes an event listener from a server

setProperties

public void setProperties(AdminServerProperties props)
implementation of the Server interface setServerProperties() method. Returns the properties of server

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fireUserAddedEvent

protected void fireUserAddedEvent(AdminUser user)
fires server user added events to the listeners.

fireUserRemovedEvent

protected void fireUserRemovedEvent(AdminUser user)
fires server user removed events to the listeners.

fireUserRenamedEvent

protected void fireUserRenamedEvent(AdminUser user)
fires server user renamed events to the listeners.

fireServerDisconnectingEvent

protected void fireServerDisconnectingEvent()
fires server disconnecting events to the listeners.

fireServerConnectedEvent

protected void fireServerConnectedEvent()
fires server connected events to the listeners.

fireServerStatusUpdateEvent

protected void fireServerStatusUpdateEvent()
fires server status update events to the listeners.

isDefaultValue

public static boolean isDefaultValue(DefaultAdminServer server)
Checks if the value in the argument is the same as the default value defined for this class.

isDefaultPropertyCheckingSupported

public static boolean isDefaultPropertyCheckingSupported()
This property is used to check if a default value is supported by this class.

isSslEnabled

public boolean isSslEnabled()
Specified by:
isSslEnabled in interface AdminServer
Returns:
whether ssl is enabled or not

setSslEnabled

public void setSslEnabled(boolean enable)
Specified by:
setSslEnabled in interface AdminServer
Parameters:
enable - Ssl support enabled

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.