|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openiec61850.scsm.mms.server.MmsServerSAP
public class MmsServerSAP
Constructor Summary | |
---|---|
MmsServerSAP()
|
|
MmsServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
SAPStopListener sapStopListener)
Create a simple MMSServerSAP. |
|
MmsServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
javax.net.ServerSocketFactory serverSocketFactory,
SAPStopListener sapStopListener)
Create an MMSServerSAP with a ServerSocketFactory. |
Method Summary | |
---|---|
void |
connectionIndication(org.openiec61850.jmms.iso.acse.AcseAssociation pConnection,
java.nio.ByteBuffer psdu)
|
void |
init(AccessPoint accessPoint,
SAPStopListener sapStopListener,
java.util.Properties properties,
java.lang.String sapPropName)
|
void |
serverStoppedListeningIndication(java.io.IOException e)
|
void |
setMaxConnections(int maxConnections)
Set the maximum number of connections that are allowed in parallel by the Server SAP. |
void |
setMaxTPDUSizeParam(int maxTPDUSizeParam)
Set the maxTPDUSize. |
void |
setMessageFragmentTimeout(int messageFragmentTimeout)
Set the TConnection timeout for receiving data once the beginning of a message has been received. |
void |
setMessageTimeout(int messageTimeout)
Set the TConnection timeout for waiting for the first byte of a new message. |
void |
startListening()
|
void |
stopListening()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MmsServerSAP(int port, int backlog, java.net.InetAddress bindAddr, AccessPoint accessPoint, javax.net.ServerSocketFactory serverSocketFactory, SAPStopListener sapStopListener)
port
- local portbacklog
- when 0 default value is usedbindAddr
- local ip address to bind to, pass null to bind to allaccessPoint
- the associated AccessPoint (implementing ServerACSI)serverSocketFactory
- the factory class to generate the ServerSocketpublic MmsServerSAP()
public MmsServerSAP(int port, int backlog, java.net.InetAddress bindAddr, AccessPoint accessPoint, SAPStopListener sapStopListener)
port
- local portbacklog
- when 0 default value is usedbindAddr
- local ip address to bind to, pass null to bind to allaccessPoint
- the associated AccessPoint (implementing ServerACSI)Method Detail |
---|
public void init(AccessPoint accessPoint, SAPStopListener sapStopListener, java.util.Properties properties, java.lang.String sapPropName) throws ConfigurationException
init
in interface SCSMServerSAP
ConfigurationException
public void setMaxTPDUSizeParam(int maxTPDUSizeParam)
maxTPDUSizeParam
- The maximum length is equal to 2^(maxTPDUSizeParam) octets.
Note that the actual TSDU size that can be transfered is equal
to TPDUSize-3. Default is 65531 octets (see RFC 1006), 7 <=
maxTPDUSizeParam <= 16, needs to be set before listening or
connectingpublic void setMaxConnections(int maxConnections)
maxConnections
- the number of connections allowed (default is 100)public void setMessageTimeout(int messageTimeout) throws java.net.SocketException
messageTimeout
- in milliseconds
java.net.SocketException
public void setMessageFragmentTimeout(int messageFragmentTimeout) throws java.net.SocketException
messageFragmentTimeout
- in milliseconds
java.net.SocketException
public void startListening() throws java.io.IOException
startListening
in interface SCSMServerSAP
java.io.IOException
public void stopListening()
stopListening
in interface SCSMServerSAP
public void connectionIndication(org.openiec61850.jmms.iso.acse.AcseAssociation pConnection, java.nio.ByteBuffer psdu)
connectionIndication
in interface org.openiec61850.jmms.iso.acse.AcseAssociationListener
public void serverStoppedListeningIndication(java.io.IOException e)
serverStoppedListeningIndication
in interface org.openiec61850.jmms.iso.acse.AcseAssociationListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |