All Packages Class Hierarchy This Package Previous Next Index
Interface calypso.core.atmswitch.SwitchMgmt
- public interface SwitchMgmt
- extends Remote
Interface for server-side method calls.
This enables calls from client to server, these calls enable
configuration for example with a web browser.
- Author:
- Kim Lahti / TCM laboratory / HUT
-
addPointToMCConnection(int, int, int, int, int)
- Tries to add a new point to the multicast connection.
-
createMCConnection(int, int, int)
- Tries to create a new multicast connection.
-
createPPConnection(int, int, int, int, int, int)
- Tries to create a new point to point connection.
-
getInterface(int)
- Checks the physical interfaces connected to the FSR port.
-
getMaxVCI(int)
- Gets the maximum VCI number.
-
getMaxVPI(int)
- Gets the maximum VPI number.
-
getMCConnAmount()
- Gets the amount of multicast connections.
-
getMCConnections()
- Method to give the connections in text format.
-
getMCConnInfo()
- Gets information about the current Multicast connections.
-
getMinVCI(int)
- Gets the minumum VCI number.
-
getParameterValue(String)
- Gets the Switch value for the requested parameter.
-
getPortAmount()
- Getst the amount of ports.
-
getPortType(int)
- Gets the type of the port (NNI/UNI).
-
getPPConnAmount()
- Gets the amount of point to point connections.
-
getPPConnections()
- Mehtod to give the connections in text format.
-
getPPConnInfo()
- Gets information about the current Point to Point connections.
-
getStatisticalStartTime()
- Gets the Calendar object that was initialized when the switch
was initialized.
-
getStatisticalTotal()
- Gets the total amount of cells since the switch was started.
-
initSwitch()
- Initializes the ATM switch hardware and library functions.
-
isLineInSynch(int)
- Indicates if the FSR interface card has synchronized to the
SDH/STM-1 frame coming from the fiber.
-
isPortActive(int)
- Checks if port is active.
-
isSwitchAvailable()
- Checks if the fiber between the switch and the control station is
working.
-
releaseMCConnection(int, int)
- Tries to release the multicast connection previesly created.
-
releasePPConnection(int, int)
- Tries to release the point to point connection previesly created.
-
resetSwitch()
- Resets the switch by releasing all ongoing connections and
releasing all the resources.
-
setRMgmtAndUnbind(SwitchRMgmt)
- Sets the client side management reference and removes this object from
registry.
-
setTransferSpeed(boolean, int, int)
- Sets the sample rate on one second.
setRMgmtAndUnbind
public abstract void setRMgmtAndUnbind(SwitchRMgmt srm_) throws RemoteException
- Sets the client side management reference and removes this object from
registry.
- Parameters:
- srm_ - The client-side remote implementing interface.
initSwitch
public abstract void initSwitch() throws RemoteException
- Initializes the ATM switch hardware and library functions. There
will be no connections after this method call.
resetSwitch
public abstract void resetSwitch() throws RemoteException
- Resets the switch by releasing all ongoing connections and
releasing all the resources.
getStatisticalStartTime
public abstract Calendar getStatisticalStartTime() throws RemoteException
- Gets the Calendar object that was initialized when the switch
was initialized.
- Returns:
- The date object that was inited when the switch was inited.
getStatisticalTotal
public abstract long[][] getStatisticalTotal() throws RemoteException
- Gets the total amount of cells since the switch was started.
- Returns:
- The event amounts.
setTransferSpeed
public abstract boolean setTransferSpeed(boolean isEnabled_,
int port_,
int info_) throws RemoteException
- Sets the sample rate on one second.
getParameterValue
public abstract long getParameterValue(String param_) throws RemoteException
- Gets the Switch value for the requested parameter.
- Parameters:
- param_ - The parameter of the desired value.
- Throws: UnknownQueryException
- If the parameter is unknown.
getPortType
public abstract int getPortType(int portNumber_) throws RemoteException
- Gets the type of the port (NNI/UNI).
- Parameters:
- portNumber_ - the number of port investigated.
- Returns:
- zero if no port, one if UNI and two if NNI.
getInterface
public abstract int getInterface(int portNumber_) throws RemoteException
- Checks the physical interfaces connected to the FSR port.
- Parameters:
- portNumer_ - The number of the port investigated.
- Returns:
- integer between 0-4, zero no interface, 1-4 different types.
getPortAmount
public abstract int getPortAmount() throws RemoteException
- Getst the amount of ports.
- Returns:
- the amount of ports.
isPortActive
public abstract boolean isPortActive(int portNumber_) throws RemoteException
- Checks if port is active.
- Parameters:
- portNumber_ - the number of port investigated.
- Returns:
- true if active false if not.
getMaxVPI
public abstract long getMaxVPI(int portNumber_) throws RemoteException
- Gets the maximum VPI number.
getMaxVCI
public abstract long getMaxVCI(int portNumber_) throws RemoteException
- Gets the maximum VCI number.
getMinVCI
public abstract long getMinVCI(int portNumber_) throws RemoteException
- Gets the minumum VCI number.
createPPConnection
public abstract void createPPConnection(int port1_,
int port2_,
int VCI1_,
int VCI2_,
int VPI1_,
int VPI2_) throws RemoteException
- Tries to create a new point to point connection.
- Parameters:
- port1_ - A port in the switch, one of the points in the connection.
- port2_ - A port in the switch, one of the points in the connection.
- VCI1_ - The VCI for port1_.
- VCI2_ - The VCI for port2_.
- VPI1_ - The VPI for port1_.
- VPI2_ - The VPI for port2_.
releasePPConnection
public abstract void releasePPConnection(int index_,
int ID) throws RemoteException
- Tries to release the point to point connection previesly created.
- Parameters:
- index_ - The position of the connection in the ownConnections
vector.
getPPConnections
public abstract DefaultListModel getPPConnections() throws RemoteException
- Mehtod to give the connections in text format.
createMCConnection
public abstract void createMCConnection(int port_,
int VCI_,
int VPI_) throws RemoteException
- Tries to create a new multicast connection.
- Parameters:
- port_ - A port in the switch, the port for the message sender.
- VCI_ - The VCI for port_.
- VPI_ - The VPI for port_.
getMCConnections
public abstract DefaultListModel getMCConnections() throws RemoteException
- Method to give the connections in text format.
This method is invoked by the client when the mc connection
display in initialized.
addPointToMCConnection
public abstract void addPointToMCConnection(int index_,
int ID_,
int port_,
int VCI_,
int VPI_) throws RemoteException
- Tries to add a new point to the multicast connection.
- Parameters:
- index_ - The index of the already created mc connection.
- port_ - A port in the switch, a port for the receiver.
- VCI_ - The VCI for the port_.
- VPI_ - The VPI for the port_.
- ID_ - The ID of the connection tried to remove.
releaseMCConnection
public abstract void releaseMCConnection(int index_,
int ID_) throws RemoteException
- Tries to release the multicast connection previesly created.
- Parameters:
- index_ - The position of the connection in the mcConnections
vector.
- ID_ - The id of the connection that is tried to release.
getPPConnAmount
public abstract int getPPConnAmount() throws RemoteException
- Gets the amount of point to point connections.
- Returns:
- The amount of point to point connections.
getMCConnAmount
public abstract int getMCConnAmount() throws RemoteException
- Gets the amount of multicast connections.
- Returns:
- The amount of multicast connections.
getPPConnInfo
public abstract String[] getPPConnInfo() throws RemoteException
- Gets information about the current Point to Point connections.
- Returns:
- A string array containing information about the connecitons.
getMCConnInfo
public abstract String[] getMCConnInfo() throws RemoteException
- Gets information about the current Multicast connections.
- Returns:
- A string array containing information about the connection.
isSwitchAvailable
public abstract boolean isSwitchAvailable() throws RemoteException
- Checks if the fiber between the switch and the control station is
working.
- Returns:
- True if available and false if not.
isLineInSynch
public abstract boolean isLineInSynch(int portNumber_) throws RemoteException
- Indicates if the FSR interface card has synchronized to the
SDH/STM-1 frame coming from the fiber.
- Parameters:
- portNumber_ - The number of port investigated.
- Returns:
- true if in synch and false if not.
All Packages Class Hierarchy This Package Previous Next Index