All Packages Class Hierarchy This Package Previous Next Index
Class iceberg.APCpath.services.APC
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
|
+----ninja.ispace.iSpaceService
|
+----iceberg.APCpath.services.APC
- public class APC
- extends iSpaceService
- implements APCIF
APC service: coordinates path creation activity.
It contacts the connection manager on various Ispaces
to do the operator placement.
-
G
-
-
hostNames
-
-
hostsInfo
-
-
MYNAME
-
-
numValid
-
-
Operators
- My list of operators.
-
pathTable
-
-
validHosts
-
-
validList
-
-
APC()
- APC(): constructor: creating an APC service.
-
changePath(int, EndPointInfo)
- changes path's endpointinfo, need to retain the same pathID
-
changePathEndPt(int, String, String)
- changes path's first operator to the new addresss and new port
-
destroy()
- destroy the APC service
-
init(iSpaceServiceConfig)
- init:
takes in argument of a file name specifying available hosts to be
used in placing operators, each of this hosts needs to run a
connection manager service
-
pathRequest(EndPointInfo, EndPointInfo)
- This function is called to request to have a new data path
built from the source point with srcEndpt to destination point
with destEndpt.
-
pathRequest(int, String, String, String, String, String, String, Object[], Object[], String, String)
- pathRequest:
Given a request for path construction,
(1) creates the physical path description,
(2) implement the actual path
arglist: is the list of the potential additional arguments
that might exist for the first operator.
-
pathTearDown(int)
- pathTearDown:
Tear down the path connection: closes the operators,
need to close connections and delete the path data structure.
-
repairPath(String, String, int, int)
- To repair a path:
1) find a host to load the failing operator
2) find the culprit operator
3) relocate the operator to the new host
4) re-establish the broken connections
5) restart the data flow by starting the operator
pathTable
public static Hashtable pathTable
hostsInfo
public static Hashtable hostsInfo
MYNAME
public static final String MYNAME
hostNames
public static Vector hostNames
validList
public static ConnectorMgrIF validList[]
validHosts
public static String validHosts[]
numValid
public static int numValid
Operators
public static final String Operators[]
- My list of operators. Format is , , , ,
, ,...
G
public static Hashtable G
APC
public APC() throws RemoteException
- APC(): constructor: creating an APC service.
init
protected void init(iSpaceServiceConfig config)
- init:
takes in argument of a file name specifying available hosts to be
used in placing operators, each of this hosts needs to run a
connection manager service
- Overrides:
- init in class iSpaceService
destroy
protected void destroy()
- destroy the APC service
- Overrides:
- destroy in class iSpaceService
pathRequest
public int pathRequest(int pathid,
String inputType,
String outputType,
String inputHost,
String inputPort,
String outputHost,
String outputPort,
Object others1[],
Object others2[],
String cName,
String sessionID) throws RemoteException, PathNotFoundException
- pathRequest:
Given a request for path construction,
(1) creates the physical path description,
(2) implement the actual path
arglist: is the list of the potential additional arguments
that might exist for the first operator.
pathRequest
public int pathRequest(EndPointInfo endpt1,
EndPointInfo endpt2) throws RemoteException, PathNotFoundException
- This function is called to request to have a new data path
built from the source point with srcEndpt to destination point
with destEndpt. EndPointInfo is a data structure containing
relevant information needed for path construction (e.g. data
format, IP address and port number etc.) Path ID is returned
as a unique handle to the path built.
- Parameters:
- endpt1 - -- the description of the source
- endpt2 - -- the description of the destination
pathTearDown
public void pathTearDown(int pathId) throws RemoteException
- pathTearDown:
Tear down the path connection: closes the operators,
need to close connections and delete the path data structure.
repairPath
public void repairPath(String opName,
String cType,
int tType,
int pathID) throws RemoteException
- To repair a path:
1) find a host to load the failing operator
2) find the culprit operator
3) relocate the operator to the new host
4) re-establish the broken connections
5) restart the data flow by starting the operator
changePath
public void changePath(int pathId,
EndPointInfo newEndPointInfo) throws RemoteException, PathNotFoundException
- changes path's endpointinfo, need to retain the same pathID
changePathEndPt
public void changePathEndPt(int pathId,
String newAddress,
String newPort) throws RemoteException
- changes path's first operator to the new addresss and new port
All Packages Class Hierarchy This Package Previous Next Index