PageRenderTime 47ms CodeModel.GetById 38ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/MegacoProvider.java

http://mobicents.googlecode.com/
Java | 28 lines | 15 code | 7 blank | 6 comment | 0 complexity | 7efa849409cbac8037ecc25abda33f09 MD5 | raw file
 1package javax.megaco;
 2
 3/**
 4 * This interface must be implemented by any class that represents the JAIN
 5 * MEGACO abstraction of an MEGACO stack and that interacts directly with a
 6 * proprietary (vendor-specific) implementation of that MEGACO stack.
 7 * 
 8 */
 9public interface MegacoProvider {
10
11	public int addMegacoListener(MegacoListener listener, UserId UserId)
12			throws java.util.TooManyListenersException,
13			javax.megaco.InvalidUserIdException,
14			javax.megaco.AssocHandleExhaustedException,
15			IllegalArgumentException;
16
17	public MegacoStack getMegacoStack();
18
19	public int getAssocHandle(UserId UserId)
20			throws javax.megaco.NonExistentAssocException;
21
22	public void removeMegacoListener(MegacoListener listener, int assocHandle)
23			throws IllegalArgumentException;
24
25	public void sendMegacoAssocEvent(AssociationEvent jainMegacoAssocEvent);
26
27	public int sendMegacoCmdEvent(CommandEvent jainMegacoCmdEvent);
28}