SCS

scs.core.servant
Class IReceptaclesServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.core.IReceptaclesPOA
          extended by scs.core.servant.IReceptaclesServant
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, IReceptaclesOperations
Direct Known Subclasses:
EventSourceServant, HandsServant, InfoServant, InfoServant, MonitoringReceptacles

public abstract class IReceptaclesServant
extends IReceptaclesPOA

Classe abstrata que implementa as caracteristicas comuns aos IReceptacles do SCS.


Constructor Summary
IReceptaclesServant()
          ctor default
 
Method Summary
 int connect(java.lang.String receptacle, org.omg.CORBA.Object obj)
           
protected abstract  java.util.ArrayList<Receptacle> createReceptacles()
          Metodo que retorna o conjunto de receptaculos das classes derivadas
 void disconnect(int id)
           
protected  Receptacle findReceptacle(java.lang.String name)
           
protected  Receptacle findReceptacleByConnection(int connId)
           
protected abstract  int getConnectionLimit()
          Metodo abstrato para as classes concretas implementarem o limite de conexoes
 ConnectionDescription[] getConnections(java.lang.String receptacle)
           
 java.util.ArrayList<ReceptacleDescription> getReceptacles()
           
protected abstract  boolean isValidConnection(org.omg.CORBA.Object obj)
          Metodo abstrato para as classes derivadas validarem as conexoes
 
Methods inherited from class scs.core.IReceptaclesPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IReceptaclesServant

public IReceptaclesServant()
ctor default

Method Detail

createReceptacles

protected abstract java.util.ArrayList<Receptacle> createReceptacles()
Metodo que retorna o conjunto de receptaculos das classes derivadas


getConnectionLimit

protected abstract int getConnectionLimit()
Metodo abstrato para as classes concretas implementarem o limite de conexoes

Returns:
limite de conexoes

isValidConnection

protected abstract boolean isValidConnection(org.omg.CORBA.Object obj)
Metodo abstrato para as classes derivadas validarem as conexoes

Returns:
status da conexao

findReceptacle

protected Receptacle findReceptacle(java.lang.String name)
Parameters:
name -
Returns:

findReceptacleByConnection

protected Receptacle findReceptacleByConnection(int connId)
Parameters:
connId -
Returns:

connect

public int connect(java.lang.String receptacle,
                   org.omg.CORBA.Object obj)
            throws InvalidName,
                   InvalidConnection,
                   AlreadyConnected,
                   ExceededConnectionLimit
Throws:
InvalidName
InvalidConnection
AlreadyConnected
ExceededConnectionLimit

disconnect

public void disconnect(int id)
                throws InvalidConnection,
                       NoConnection
Throws:
InvalidConnection
NoConnection

getConnections

public ConnectionDescription[] getConnections(java.lang.String receptacle)
                                       throws InvalidName
Throws:
InvalidName

getReceptacles

public java.util.ArrayList<ReceptacleDescription> getReceptacles()
Returns:

SCS