コード例 #1
0
 /* 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());
 }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public StatusType unmarshal(String status) throws Exception {
   return StatusType.get(status);
 }
コード例 #3
0
 /** {@inheritDoc} */
 @Override
 public String marshal(StatusType statusTypr) throws Exception {
   return Character.toString(statusTypr.getCharCode());
 }