|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.zap.Channel
public class Channel
| Field Summary | |
|---|---|
protected int |
fd
|
protected org.mobicents.protocols.stream.api.SelectorKey |
selectorKey
|
| Constructor Summary | |
|---|---|
Channel()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
closeChannel(int fd)
Closes this pipe. |
void |
doRegister(int fd)
Registers pipe for polling. |
protected void |
doRegister(org.mobicents.protocols.stream.api.StreamSelector selector)
|
void |
doUnregister(int fd)
Unregisters pipe from polling. |
protected void |
doUnregister(org.mobicents.protocols.stream.api.StreamSelector selector)
|
int |
getChannelID()
|
int |
getCode()
|
org.mobicents.protocols.ss7.mtp.Mtp2 |
getLink()
|
java.lang.String |
getLinkName()
|
int |
getSpan()
|
boolean |
isReadable()
|
boolean |
isWriteable()
|
void |
open()
|
int |
openChannel(int id)
Opens this channel and prepares it for reading. |
org.mobicents.protocols.stream.api.SelectorProvider |
provider()
|
int |
read(byte[] buffer)
Reads data from this pipe. |
int |
readData(int fd,
byte[] buffer)
|
org.mobicents.protocols.stream.api.SelectorKey |
register(org.mobicents.protocols.stream.api.StreamSelector selector)
|
void |
setChannelID(int channelID)
|
void |
setCode(int code)
|
void |
setLink(org.mobicents.protocols.ss7.mtp.Mtp2 link)
|
void |
setLinkName(java.lang.String linkName)
|
void |
setSpan(int span)
|
java.lang.String |
toString()
|
int |
write(byte[] buffer)
Writes specified data to the pipe. |
void |
write(byte[] data,
int len)
|
void |
writeData(int fd,
byte[] buffer,
int len)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int fd
protected org.mobicents.protocols.stream.api.SelectorKey selectorKey
| Constructor Detail |
|---|
public Channel()
| Method Detail |
|---|
public int getSpan()
public void setSpan(int span)
public int getChannelID()
public void setChannelID(int channelID)
public void setCode(int code)
public int getCode()
getCode in interface org.mobicents.protocols.ss7.mtp.Mtp1public void setLinkName(java.lang.String linkName)
public java.lang.String getLinkName()
public void open()
open in interface org.mobicents.protocols.ss7.mtp.Mtp1public int openChannel(int id)
path - the path to the device.
public int read(byte[] buffer)
throws java.io.IOException
read in interface org.mobicents.protocols.ss7.mtp.Mtp1read in interface org.mobicents.protocols.stream.api.Streambuffer - the byte buffer to read data.
java.io.IOException
public int readData(int fd,
byte[] buffer)
public int write(byte[] buffer)
throws java.io.IOException
write in interface org.mobicents.protocols.stream.api.Streambuffer - the buffer with data to writelen - the length of the buffer.
java.io.IOException
public void writeData(int fd,
byte[] buffer,
int len)
public void doRegister(int fd)
fd - the file descriptor.public void doUnregister(int fd)
fd - the file descriptor.public void close()
close in interface org.mobicents.protocols.ss7.mtp.Mtp1close in interface org.mobicents.protocols.stream.api.Streampublic void closeChannel(int fd)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setLink(org.mobicents.protocols.ss7.mtp.Mtp2 link)
setLink in interface org.mobicents.protocols.ss7.mtp.Mtp1public org.mobicents.protocols.ss7.mtp.Mtp2 getLink()
getLink in interface org.mobicents.protocols.ss7.mtp.Mtp1protected void doRegister(org.mobicents.protocols.stream.api.StreamSelector selector)
protected void doUnregister(org.mobicents.protocols.stream.api.StreamSelector selector)
public boolean isReadable()
public boolean isWriteable()
public org.mobicents.protocols.stream.api.SelectorProvider provider()
provider in interface org.mobicents.protocols.stream.api.Stream
public org.mobicents.protocols.stream.api.SelectorKey register(org.mobicents.protocols.stream.api.StreamSelector selector)
throws java.io.IOException
register in interface org.mobicents.protocols.stream.api.Streamjava.io.IOException
public void write(byte[] data,
int len)
throws java.io.IOException
write in interface org.mobicents.protocols.ss7.mtp.Mtp1java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||