|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods required to represent a proprietary JAIN
TCAP protocol stack, the implementation of which will be vendor specific.
Each vendor's protocol stack will have an object that implements this
interface to control the creation/deletion of proprietary
JainTcapProviders
and the implicit attaching/detaching of those
JainTcapProviders
to this JainTcapStack implementation.
It must be noted that under the JAIN Naming Convention the lower-level package structure and classname of a proprietary implementation of the jain.protocol.ss7.tcap.JainTcapStack interface must be jain.protocol.ss7.tcap.JainTcapStackImpl .
Under the JAIN naming convention, the upper-level package structure (pathname) can be used to differentiate between proprietary implementations from different SS7 Vendors. The pathname used by each SS7 Vendor must be the domain name assigned to the Vendor in reverse order, e.g. Sun Microsystem's would be 'com.sun'
It follows that a proprietary implementation of a JainTcapStack will be
located at:
Where:
pathname = reverse domain name, e.g. com.sun'
The resulting Peer JAIN SS7 Object would be located at: com.sun
jain.protocol.ss7.tcap.JainTcapStackImpl
An application may create a JainTcapStackImpl by invoking the
JainSs7Factory.createJainSS7Object() method. The PathName of the
vendor specific implementation of which you want to instantiate can be set
before calling this method or the default or current pathname may be used.
For applications that require some means to identify multiple stacks (with
multiple SPCs) setStackName() can be used. An application can choose to
supply any identifier to this method.
Note that a JainTcapStack represents a single SPC.
JainTcapProvider
Method Summary | |
void |
attach(JainTcapProvider jainTcapProvider)
Deprecated. As of JAIN TCAP v1.1. No replacement the attach of the JainTcapProvider occurs implicitly within the createProvider method of this interface. |
JainTcapProvider |
createAttachedProvider()
Deprecated. As of JAIN TCAP v1.1. This method has been replaced by the createProvider method in this Interface. |
JainTcapProvider |
createDetachedProvider()
Deprecated. As of JAIN TCAP v1.1. This method has been replaced by the createProvider method in this Interface. |
JainTcapProvider |
createProvider()
Creates a new Peer (vendor specific) JainTcapProvider whose
reference is exposed by this JainTcapStackImp. |
void |
deleteProvider(JainTcapProvider providerToBeDeleted)
Deletes the specified Peer JAIN TCAP Provider attached to this JainTcapStackImpl. |
void |
detach(JainTcapProvider jainTcapProvider)
Deprecated. As of JAIN TCAP v1.1. No replacement the detach of the JainTcapProvider occurs implicitly within the deleteProvider method of this interface. |
int |
getProtocolVersion()
Deprecated. As of JAIN TCAP v1.1. This method has been replaced by getStackSpecification in the JainTcapStack
Interface.
Note: These get/set protocolVersion methods were deprecated to avoid
confusion between the stack standards supported and the protocol version field
supported by the ANSI 1996 Dialogue Portion |
JainTcapProvider[] |
getProviderList()
Update v1.1: Changed return type of provider List from Vector to Array. |
int[] |
getSignalingPointCode()
The Signaling Point Code can be implemented in one of the following 4 ways ITU_14bit - Split 3-8-3 across member/cluster/zone. |
java.lang.String |
getStackName()
Returns the name of the stack as a string |
int |
getStackSpecification()
Gets the stack Specification that this Stack is currently supporting. |
java.lang.String |
getVendorName()
Returns the Vendor's name for this stack |
void |
setProtocolVersion(int protocolVersion)
Deprecated. As of JAIN TCAP v1.1. This method has been replaced by setStackSpecification in
the JainTcapStack Interface. |
void |
setStackName(java.lang.String stackName)
Sets the name of the stack as a string |
void |
setStackSpecification(int stackSpecification)
Sets the Stack specification that this Stack is to support. |
void |
setVendorName(java.lang.String vendorName)
Sets the Vendors name for this stack, this name will be the Vendor's domain name inverted i.e. |
Method Detail |
public int[] getSignalingPointCode()
public JainTcapProvider createProvider() throws PeerUnavailableException
JainTcapProvider
whose
reference is exposed by this JainTcapStackImp. This method replaces the
createAttachedProvider and createDetachedProvider methods, which have
become deprecated in this interface. JainTcapProvider
to the providerList once the
JainTcapProvider
has been successfully created and set the
JainTcapStack reference in the newly create JainTcapProvider
to this object.
Example:-
public JainTcapProvider createProvider() throws PeerUnavailableException {
try {}JainTcapProviderImpl myProvider = new JainTcapProviderImpl();} catch(ClassNotFoundException err) {throw new ss7PeerUnavailableException("Couldn't find peer");}
myProvider.myStack = this;
return myProvider;
PeerUnavailableException
- thrown if the class is not found
for a specific peer implementationpublic JainTcapProvider createAttachedProvider() throws PeerUnavailableException, ProviderNotAttachedException
createProvider
method in this Interface.
public JainTcapProvider createDetachedProvider() throws PeerUnavailableException
createProvider
method in this Interface.
public void deleteProvider(JainTcapProvider providerToBeDeleted) throws DeleteProviderException
Example:-
public void deleteProvider(JainTcapProvider providerToBeDeleted) throws
DeleteProviderException {
if (null == providerToBeDeleted) { }}
JainTcapProvider[] myProviderList = this.getProviderList();
for (int i=0; i<myProviderList.length; i++) {
if (providerToBedeleted == myProviderList[i]){}myProviderList[i] = null;} else {throw new DeleteProviderException("Couldn't find provider");}
return;
providerToBeDeleted
- the provider to be deletedDeleteProviderException
- thrown if not such provider existspublic void attach(JainTcapProvider jainTcapProvider) throws ProviderNotAttachedException
createProvider
method of this interface.
public void detach(JainTcapProvider jainTcapProvider) throws ProviderNotAttachedException
deleteProvider
method of this interface.
public JainTcapProvider[] getProviderList()
public java.lang.String getStackName()
public void setStackName(java.lang.String stackName)
stackProtocol
- The new Stack Name valuepublic java.lang.String getVendorName()
public void setVendorName(java.lang.String vendorName)
vendorName
- The new Vendor's Namepublic int getProtocolVersion()
getStackSpecification
in the JainTcapStack
Interface.
Note: These get/set protocolVersion methods were deprecated to avoid
confusion between the stack standards supported and the protocol version field
supported by the ANSI 1996 Dialogue Portion
public void setProtocolVersion(int protocolVersion) throws TcapException
setStackSpecification
in
the JainTcapStack Interface.
public int getStackSpecification()
Note to developers :- This should not be confused with the protocol version field supported by the ANSI 1996 Dialogue Portion.
public void setStackSpecification(int stackSpecification) throws VersionNotSupportedException
Note to developers :- This should not be confused with the protocol version field supported by the ANSI 1996 Dialogue Portion.
stackSpecification
- one of the following values:
VersionNotSupportException
- thrown if the supplied stack specification
cannot be supported by this Stack, or if the Stack
cannot change supported stack specifications because it is
not in a idle state.TcapConstants
|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |