Class BdComDevice
java.lang.Object
org.bgerp.plugin.bgb.getolt.telnet.OltDevice
org.bgerp.plugin.bgb.getolt.telnet.vendor.BdComDevice
- All Implemented Interfaces:
AutoCloseable
BDCOM OLT device. Ported 1:1 from GetOltv2 BdCom.java.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bgerp.plugin.bgb.getolt.telnet.OltDevice
OltDevice.AuthenticationException, OltDevice.OLTException, OltDevice.ONUInfo -
Field Summary
Fields inherited from class org.bgerp.plugin.bgb.getolt.telnet.OltDevice
AUTH_ERROR, curLogin, curPass, log, logMessages, loop_detection, MAX_RETRY_COUNT, passCurPos, patterns, port_isolation, portsCount, s1, sessionState, telnet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String login, String password) BDCOM needs 'terminal length 0' after authentication to disable --More-- prompts.getInfo()getMacToOnuRawForPort(int port) getOpticalInfo(int port) protected intparseMacResponse(String response, int port) voidrebootOnu(int port, int onuId) Methods inherited from class org.bgerp.plugin.bgb.getolt.telnet.OltDevice
addlog, addlog, close, convertUtilsToLog, firmwareVersionInfo, getAllMac, getCurLogin, getCurPass, getDefaultPatterns, getLog, getLoopDetectionCached, getMacToOnu, getMacToOnuForPort, getOnuMacAddresses, getOnuMacAddressesForPort, getOnuMacAddressesRaw, getOnuMacAddressesRawForPort, getPortCount, getPortIsolationCached, getServerIp, getSessionState, getStatsOnuAllPorts, getStatsOnuInPort, getTelnet, isConnected, setAuthenticationResult, setAuthenticationResult
-
Constructor Details
-
BdComDevice
- Throws:
IOException
-
BdComDevice
- Throws:
IOException
-
-
Method Details
-
getVendor
-
authenticate
BDCOM needs 'terminal length 0' after authentication to disable --More-- prompts. Without this, any command that produces long output will hang.- Overrides:
authenticatein classOltDevice- Throws:
IOException
-
getSerialNumber
- Specified by:
getSerialNumberin classOltDevice
-
getSystemTime
- Specified by:
getSystemTimein classOltDevice
-
getLoopDetection
- Specified by:
getLoopDetectionin classOltDevice- Throws:
IOException
-
getPortIsolation
- Specified by:
getPortIsolationin classOltDevice- Throws:
IOException
-
getInfo
- Specified by:
getInfoin classOltDevice- Throws:
IOException
-
getMacToOnuRaw
- Overrides:
getMacToOnuRawin classOltDevice- Throws:
IOException
-
getPortsCount
- Specified by:
getPortsCountin classOltDevice- Throws:
IOException
-
getOpticalInfo
- Specified by:
getOpticalInfoin classOltDevice- Throws:
IOException
-
getOpticalInfo
- Specified by:
getOpticalInfoin classOltDevice- Throws:
IOException
-
getDistanceInfo
- Specified by:
getDistanceInfoin classOltDevice- Throws:
IOException
-
getMacToOnuRawForPort
- Overrides:
getMacToOnuRawForPortin classOltDevice- Throws:
IOException
-
parseMacResponse
-
getRunningConfig
- Overrides:
getRunningConfigin classOltDevice
-
getStartupConfig
- Overrides:
getStartupConfigin classOltDevice
-
rebootOnu
- Specified by:
rebootOnuin classOltDevice- Throws:
IOException
-