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

Method Index

 o addPointToMCConnection(int, int, int, int, int)
Tries to add a new point to the multicast connection.
 o createMCConnection(int, int, int)
Tries to create a new multicast connection.
 o createPPConnection(int, int, int, int, int, int)
Tries to create a new point to point connection.
 o getInterface(int)
Checks the physical interfaces connected to the FSR port.
 o getMaxVCI(int)
Gets the maximum VCI number.
 o getMaxVPI(int)
Gets the maximum VPI number.
 o getMCConnAmount()
Gets the amount of multicast connections.
 o getMCConnections()
Method to give the connections in text format.
 o getMCConnInfo()
Gets information about the current Multicast connections.
 o getMinVCI(int)
Gets the minumum VCI number.
 o getParameterValue(String)
Gets the Switch value for the requested parameter.
 o getPortAmount()
Getst the amount of ports.
 o getPortType(int)
Gets the type of the port (NNI/UNI).
 o getPPConnAmount()
Gets the amount of point to point connections.
 o getPPConnections()
Mehtod to give the connections in text format.
 o getPPConnInfo()
Gets information about the current Point to Point connections.
 o getStatisticalStartTime()
Gets the Calendar object that was initialized when the switch was initialized.
 o getStatisticalTotal()
Gets the total amount of cells since the switch was started.
 o initSwitch()
Initializes the ATM switch hardware and library functions.
 o isLineInSynch(int)
Indicates if the FSR interface card has synchronized to the SDH/STM-1 frame coming from the fiber.
 o isPortActive(int)
Checks if port is active.
 o isSwitchAvailable()
Checks if the fiber between the switch and the control station is working.
 o releaseMCConnection(int, int)
Tries to release the multicast connection previesly created.
 o releasePPConnection(int, int)
Tries to release the point to point connection previesly created.
 o resetSwitch()
Resets the switch by releasing all ongoing connections and releasing all the resources.
 o setRMgmtAndUnbind(SwitchRMgmt)
Sets the client side management reference and removes this object from registry.
 o setTransferSpeed(boolean, int, int)
Sets the sample rate on one second.

Methods

 o 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.
 o initSwitch
 public abstract void initSwitch() throws RemoteException
Initializes the ATM switch hardware and library functions. There will be no connections after this method call.

 o resetSwitch
 public abstract void resetSwitch() throws RemoteException
Resets the switch by releasing all ongoing connections and releasing all the resources.

 o 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.
 o getStatisticalTotal
 public abstract long[][] getStatisticalTotal() throws RemoteException
Gets the total amount of cells since the switch was started.

Returns:
The event amounts.
 o setTransferSpeed
 public abstract boolean setTransferSpeed(boolean isEnabled_,
                                          int port_,
                                          int info_) throws RemoteException
Sets the sample rate on one second.

 o 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.
 o 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.
 o 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.
 o getPortAmount
 public abstract int getPortAmount() throws RemoteException
Getst the amount of ports.

Returns:
the amount of ports.
 o 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.
 o getMaxVPI
 public abstract long getMaxVPI(int portNumber_) throws RemoteException
Gets the maximum VPI number.

 o getMaxVCI
 public abstract long getMaxVCI(int portNumber_) throws RemoteException
Gets the maximum VCI number.

 o getMinVCI
 public abstract long getMinVCI(int portNumber_) throws RemoteException
Gets the minumum VCI number.

 o 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_.
 o 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.
 o getPPConnections
 public abstract DefaultListModel getPPConnections() throws RemoteException
Mehtod to give the connections in text format.

 o 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_.
 o 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.

 o 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.
 o 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.
 o getPPConnAmount
 public abstract int getPPConnAmount() throws RemoteException
Gets the amount of point to point connections.

Returns:
The amount of point to point connections.
 o getMCConnAmount
 public abstract int getMCConnAmount() throws RemoteException
Gets the amount of multicast connections.

Returns:
The amount of multicast connections.
 o 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.
 o getMCConnInfo
 public abstract String[] getMCConnInfo() throws RemoteException
Gets information about the current Multicast connections.

Returns:
A string array containing information about the connection.
 o 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.
 o 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