/* package-protected so only the NetworkElementFactory can instantiate */ AtInterface(OnmsArpInterface iface) { m_nodeId = iface.getNode().getId(); m_sourcenodeid = iface.getSourceNode().getId(); m_ifindex = iface.getIfIndex(); m_ipaddr = iface.getIpAddress(); m_physaddr = iface.getPhysAddr(); m_lastPollTime = iface.getLastPoll().toString(); m_status = StatusType.getStatusString(iface.getStatus().getCharCode()); }
/** {@inheritDoc} */ @Override public StatusType unmarshal(String status) throws Exception { return StatusType.get(status); }
/** {@inheritDoc} */ @Override public String marshal(StatusType statusTypr) throws Exception { return Character.toString(statusTypr.getCharCode()); }