All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.APCpath.services.ConnectorMgr

java.lang.Object
   |
   +----ninja.rmi.NinjaRemoteObject
           |
           +----ninja.ispace.iSpaceService
                   |
                   +----iceberg.APCpath.services.ConnectorMgr

public class ConnectorMgr
extends iSpaceService
implements ConnectorMgrIF
ConnectorMgr is the ispace service managing the connection between operators and creates/instantiates the operators.


Variable Index

 o MYNAME
 o OPBASECLASS
 o opTable

Constructor Index

 o ConnectorMgr()

Method Index

 o cleanUp(int, OperatorIF, String)
cleaning up the data structures related to this operator of a particular path with pathid, and for a given operator op.
 o createEndConn(int, OperatorIF, int)
opDest is the Reader, the destination of the data flow
 o createOperator(int, String)
creates an operator for the path with a given pathID, the operator's class name is given as "name".
 o createStartConn(int, OperatorIF, InetAddress, int, String)
createStartConn: opsource is the writer, the source of the data flow
 o destroy()
 o getOperatorDescr(String)
 o init(iSpaceServiceConfig)
in ispace.cfg file, add a list of operators to be loaded, create operator descriptions
 o initSockOp(int, DescrOperator, OperatorIF)
 o isOperatorAvailable(String)
 o listOperators()
 o loadLocal(int, DescrOperator)
 o loadLocalOperator(int, DescrOperator, String, String)
loadLocalOperator: load the operator with given name, create an instance, set its CM, return the operator instance.
 o loadLocalOperator(String)
loads an operator from a local XML Description
 o loadOperator(URL)
loads the code for an operator from a given URL
 o notifyInputFailure(String, int)
notifies the APC service that the operator with given name can no longer read input data, the input pipe for that operator is broken! just call repairPath of the APCIF.
 o notifyOutputFailure(String, int)
notifies the APC service that the operator with given name can no longer output its data, the output pipe for that operator is broken! just call repairPath of the APCIF.
 o restartConn(int, OperatorIF, OperatorIF)
 o setAPCService(APCIF)
let the connection manager remember the APC service that oversees this connection manager
 o startRunOp(OperatorIF, DescrOperator)
 o terminateConn(int, OperatorIF)

Variables

 o MYNAME
 public static final String MYNAME
 o OPBASECLASS
 protected static final String OPBASECLASS
 o opTable
 protected Hashtable opTable

Constructors

 o ConnectorMgr
 public ConnectorMgr() throws RemoteException

Methods

 o init
 public void init(iSpaceServiceConfig config)
in ispace.cfg file, add a list of operators to be loaded, create operator descriptions

Overrides:
init in class iSpaceService
 o destroy
 public void destroy()
Overrides:
destroy in class iSpaceService
 o loadLocal
 public void loadLocal(int pathid,
                       DescrOperator thedescr) throws ClassNotFoundException, IllegalArgumentException, IOException, RemoteException
 o initSockOp
 public int initSockOp(int pathid,
                       DescrOperator dLast,
                       OperatorIF opLast) throws RemoteException
 o loadLocalOperator
 public OperatorIF loadLocalOperator(int pathid,
                                     DescrOperator thedescr,
                                     String name,
                                     String sessionID) throws ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, IOException, RemoteException
loadLocalOperator: load the operator with given name, create an instance, set its CM, return the operator instance.

 o loadLocalOperator
 public void loadLocalOperator(String filename) throws ClassNotFoundException, IllegalArgumentException, IOException
loads an operator from a local XML Description

 o loadOperator
 public void loadOperator(URL xmlurl) throws ClassNotFoundException, IOException, IllegalArgumentException, RemoteException
loads the code for an operator from a given URL

 o createOperator
 public OperatorIF createOperator(int pathid,
                                  String name) throws IllegalAccessException, InstantiationException, ClassNotFoundException, RemoteException
creates an operator for the path with a given pathID, the operator's class name is given as "name".

 o listOperators
 public DescrOperator[] listOperators()
 o isOperatorAvailable
 public boolean isOperatorAvailable(String name)
 o getOperatorDescr
 public DescrOperator getOperatorDescr(String name)
 o createEndConn
 public ConnEntry createEndConn(int connType,
                                OperatorIF opDest,
                                int port) throws RemoteException, IOException
opDest is the Reader, the destination of the data flow

 o createStartConn
 public synchronized ConnEntry createStartConn(int connType,
                                               OperatorIF opSource,
                                               InetAddress addr,
                                               int port,
                                               String sessionID) throws RemoteException, IOException
createStartConn: opsource is the writer, the source of the data flow

 o terminateConn
 public void terminateConn(int connType,
                           OperatorIF op) throws IOException
 o restartConn
 public void restartConn(int connType,
                         OperatorIF op1,
                         OperatorIF op2) throws RemoteException, IOException
 o startRunOp
 public void startRunOp(OperatorIF op,
                        DescrOperator descr) throws IOException, RemoteException
 o cleanUp
 public void cleanUp(int pathid,
                     OperatorIF op,
                     String sessionID) throws RemoteException
cleaning up the data structures related to this operator of a particular path with pathid, and for a given operator op.

 o setAPCService
 public void setAPCService(APCIF apc) throws IOException, RemoteException
let the connection manager remember the APC service that oversees this connection manager

 o notifyOutputFailure
 public void notifyOutputFailure(String name,
                                 int pathID) throws IOException, RemoteException
notifies the APC service that the operator with given name can no longer output its data, the output pipe for that operator is broken! just call repairPath of the APCIF.

 o notifyInputFailure
 public void notifyInputFailure(String name,
                                int pathID) throws IOException, RemoteException
notifies the APC service that the operator with given name can no longer read input data, the input pipe for that operator is broken! just call repairPath of the APCIF.


All Packages  Class Hierarchy  This Package  Previous  Next  Index