jpel.remote.resolver
Class ConfigurationServer

java.lang.Object
  |
  +--jpel.remote.resolver.ConfigurationServer
All Implemented Interfaces:
Configuration, java.util.EventListener, GenericSocketServerListener

public class ConfigurationServer
extends java.lang.Object
implements Configuration, GenericSocketServerListener


Field Summary
static java.lang.String EXECUTE
           
static java.lang.String LOAD
           
static java.lang.String RELOAD
           
static java.lang.String SOURCE
           
 
Constructor Summary
ConfigurationServer(int port, jpel.resolver.Configuration configuration)
           
 
Method Summary
 jpel.resolver.Configuration getConfiguration()
           
 java.lang.Object getSource()
          Retorna o objeto que descreve o conjunto de dados.
 void load(java.lang.Object obj)
          Carrega uma configuração.
 java.lang.Object process(java.lang.Object command)
          Processa um objeto.
 void processCommand(jpel.remote.util.GenericSocketServerEvent e)
           
 void reload()
          Recarrega todos os recursos usados pela configuração.
 void setConfiguration(jpel.resolver.Configuration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD

public static final java.lang.String LOAD
See Also:
Constant Field Values

SOURCE

public static final java.lang.String SOURCE
See Also:
Constant Field Values

RELOAD

public static final java.lang.String RELOAD
See Also:
Constant Field Values

EXECUTE

public static final java.lang.String EXECUTE
See Also:
Constant Field Values
Constructor Detail

ConfigurationServer

public ConfigurationServer(int port,
                           jpel.resolver.Configuration configuration)
                    throws ConfigurationException
Method Detail

setConfiguration

public void setConfiguration(jpel.resolver.Configuration configuration)

getConfiguration

public jpel.resolver.Configuration getConfiguration()

load

public void load(java.lang.Object obj)
          throws ConfigurationException
Description copied from interface: Configuration
Carrega uma configuração.

Specified by:
load in interface Configuration
Parameters:
obj - Objeto com os dados, ou meta-dados, para carregar um ambiente.
Throws:
ConfigurationException - Quando há problemas na leitura da configuração.

getSource

public java.lang.Object getSource()
                           throws ConfigurationException
Description copied from interface: Configuration
Retorna o objeto que descreve o conjunto de dados.

Specified by:
getSource in interface Configuration
Returns:
O objeto com as informações sobre onde os parâmetros estão.
Throws:
ConfigurationException - Quando não é possível identificar a fonte do dados.

reload

public void reload()
            throws ConfigurationException
Description copied from interface: Configuration
Recarrega todos os recursos usados pela configuração.

Specified by:
reload in interface Configuration
Throws:
ConfigurationException - Quando não foi possível realizar o reload().

process

public java.lang.Object process(java.lang.Object command)
                         throws ConfigurationException
Description copied from interface: Configuration
Processa um objeto.

Specified by:
process in interface Configuration
Parameters:
command - Objeto a ser processado.
Returns:
Objeto resultado de uma processamento sobre a entrada.
Throws:
ConfigurationException - Quando houve erro no processamento do objeto.

processCommand

public void processCommand(jpel.remote.util.GenericSocketServerEvent e)
Specified by:
processCommand in interface GenericSocketServerListener