public class ApacheAdjustDate
extends java.lang.Object
implements java.lang.Runnable, org.apache.commons.net.telnet.TelnetNotificationHandler
Constructor and Description |
---|
ApacheAdjustDate() |
Modifier and Type | Method and Description |
---|---|
boolean |
adjustDateTime(java.lang.String vehicleId) |
static void |
main(java.lang.String[] args) |
void |
receivedNegotiation(int negotiation_code,
int option_code)
Callback method called when TelnetClient receives an option negotiation command.
|
void |
run()
Reader thread.
|
public boolean adjustDateTime(java.lang.String vehicleId)
vehicleId
- public void receivedNegotiation(int negotiation_code, int option_code)
receivedNegotiation
in interface org.apache.commons.net.telnet.TelnetNotificationHandler
negotiation_code
- - type of negotiation command received (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL,
RECEIVED_WONT)
option_code
- - code of the option negotiated
public void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.