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