org.mobicents.media.server.impl.resource.zap
Class MTPUser

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.zap.MTPUser
All Implemented Interfaces:
org.mobicents.media.server.spi.clock.Task, org.mobicents.protocols.link.LinkStateListener, org.mobicents.protocols.ss7.mtp.Mtp3Listener

public class MTPUser
extends java.lang.Object
implements org.mobicents.media.server.spi.clock.Task, org.mobicents.protocols.ss7.mtp.Mtp3Listener, org.mobicents.protocols.link.LinkStateListener

Author:
kulikov

Constructor Summary
MTPUser()
           
 
Method Summary
 void cancel()
           
 int getDpc()
           
 java.lang.String getLocalAddress()
           
 int getLocalPort()
           
 java.lang.String getName()
          Gets the name of the linkset.
 int getOpc()
           
 java.lang.String getRemoteAddress()
           
 int getRemotePort()
           
 boolean isActive()
           
 void linkDown()
           
 void linkUp()
           
 void onStateChange(org.mobicents.protocols.link.LinkState state)
           
 int perform()
           
 void receive(byte[] data)
           
 void setChannels(java.util.List<org.mobicents.protocols.ss7.mtp.Mtp1> channels)
          Assigns signalling channels.
 void setDpc(int dpc)
          Assigns destination point code.
 void setLocalAddress(java.lang.String address)
           
 void setLocalPort(int port)
           
 void setName(java.lang.String name)
          Sets the name of the linkset.
 void setOpc(int opc)
          Assigns originated point code
 void setRemoteAddress(java.lang.String address)
           
 void setRemotePort(int port)
           
 void start()
          Activates link set.
 void stop()
          Deactivates linkset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTPUser

public MTPUser()
Method Detail

getName

public java.lang.String getName()
Gets the name of the linkset.

Returns:
the name of the linkset

setName

public void setName(java.lang.String name)
Sets the name of the linkset.

Parameters:
name - the alhanumeric name of the linkset.

setOpc

public void setOpc(int opc)
Assigns originated point code

Parameters:
opc - the value of the originated point code in decimal format

setDpc

public void setDpc(int dpc)
Assigns destination point code.

Parameters:
dpc - the destination point code value in decimal format.

getOpc

public int getOpc()
Returns:
the opc

getDpc

public int getDpc()
Returns:
the dpc

setLocalAddress

public void setLocalAddress(java.lang.String address)

getLocalAddress

public java.lang.String getLocalAddress()

setLocalPort

public void setLocalPort(int port)

getLocalPort

public int getLocalPort()

setRemoteAddress

public void setRemoteAddress(java.lang.String address)

getRemoteAddress

public java.lang.String getRemoteAddress()

setRemotePort

public void setRemotePort(int port)

getRemotePort

public int getRemotePort()

setChannels

public void setChannels(java.util.List<org.mobicents.protocols.ss7.mtp.Mtp1> channels)
Assigns signalling channels.

Parameters:
channels - the list of available physical channels.

start

public void start()
           throws java.io.IOException,
                  java.lang.ClassNotFoundException
Activates link set.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

stop

public void stop()
Deactivates linkset.


cancel

public void cancel()
Specified by:
cancel in interface org.mobicents.media.server.spi.clock.Task

isActive

public boolean isActive()
Specified by:
isActive in interface org.mobicents.media.server.spi.clock.Task

perform

public int perform()
Specified by:
perform in interface org.mobicents.media.server.spi.clock.Task

linkUp

public void linkUp()
Specified by:
linkUp in interface org.mobicents.protocols.ss7.mtp.Mtp3Listener

linkDown

public void linkDown()
Specified by:
linkDown in interface org.mobicents.protocols.ss7.mtp.Mtp3Listener

receive

public void receive(byte[] data)
Specified by:
receive in interface org.mobicents.protocols.ss7.mtp.Mtp3Listener

onStateChange

public void onStateChange(org.mobicents.protocols.link.LinkState state)
Specified by:
onStateChange in interface org.mobicents.protocols.link.LinkStateListener


Copyright © 2010. All Rights Reserved.