webmngr.view
Class ServerManager

java.lang.Object
  |
  +--webmngr.view.ServerManager

public class ServerManager
extends java.lang.Object

Esta classe representa o gerente de servidores rmi que são iniciados quando o
webmanager está ativo.
Title: WebManager v2.0
Description: A web tool to network management.
Copyright: Copyright (c) 2002
Company: DSC/UFPB

Author:
 

Field Summary
protected static ServerManager pinstance
          Referência para o singleton.
 
Constructor Summary
ServerManager()
          Construtor default que inicia com nenhum servidor rmi.
 
Method Summary
 void addServer(Server newServer)
          Adiciona um novo servidor
 java.util.Iterator getServers()
          Retorna todos os servidores RMI.
static ServerManager instance()
          Singleton.
 void startRMIServers()
          Inicia todos os servidores de objetos remotos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pinstance

protected static ServerManager pinstance
Referência para o singleton.
Constructor Detail

ServerManager

public ServerManager()
Construtor default que inicia com nenhum servidor rmi.
Method Detail

instance

public static ServerManager instance()
                              throws java.rmi.RemoteException
Singleton.

getServers

public java.util.Iterator getServers()
Retorna todos os servidores RMI.
Returns:
Iterator a lista de servidores rmi

startRMIServers

public void startRMIServers()
Inicia todos os servidores de objetos remotos.

addServer

public void addServer(Server newServer)
Adiciona um novo servidor
Parameters:
newServer - o novo servidor RMI