public class Device extends Object
Constructor and Description |
---|
Device(DeviceId id,
String name,
User user,
InetAddress address,
int icePort,
int swiftPort) |
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect to the device endpoint by using Ice.
|
InetAddress |
getAddress() |
DeviceEndpointPrx |
getEndpoint() |
int |
getIcePort() |
DeviceId |
getId()
Pull a change identified by its ID from this device.
|
String |
getName() |
int |
getSwiftPort() |
User |
getUser() |
boolean |
isMobile() |
boolean |
isOnline() |
void |
notifyMessageDelivery()
Notify a device that a message has been sent to it so that it can check its
mailbox.
|
String |
toString() |
public Device(DeviceId id, String name, User user, InetAddress address, int icePort, int swiftPort)
public void connect()
public void notifyMessageDelivery()
public DeviceId getId()
public String getName()
public DeviceEndpointPrx getEndpoint()
public User getUser()
public InetAddress getAddress()
public int getIcePort()
public int getSwiftPort()
public boolean isOnline()
public boolean isMobile()