|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwol.configuration.Machine
This class represents a WakeOnLan configuration for a single computer.
Constructor Summary | |
Machine()
Creates a new machine configuration |
|
Machine(String name)
Creates a new machine configuration with the given name. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
boolean |
equals(Object obj)
|
String |
getComment()
Returns the comment |
String |
getEthernetAddress()
Returns the machines ethernet address |
String |
getHost()
Returns the host the magic packet will be sent to. |
String |
getName()
Returns this configurations name. |
int |
getPort()
returns the port the magic packet will be send to. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
setComment(String comment)
Sets the comment. |
void |
setEthernetAddress(String ethernetAddress)
Sets the ethernet address. |
void |
setHost(String host)
Sets the host the magic packet will be sent to. |
void |
setName(String name)
Sets the name. |
void |
setPort(int port)
Sets the port. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Machine()
public Machine(String name)
name
- the name of this configurationMethod Detail |
public String getHost()
public String getEthernetAddress()
public String getName()
public int getPort()
public void setHost(String host)
host
- the host. Tis can be an IP addres or the name of the machinepublic void setEthernetAddress(String ethernetAddress)
ethernetAddress
- the ethernet addresspublic void setName(String name)
name
- the namepublic void setPort(int port)
port
- the port. The port must be between 0 and 0xFFFF
IllegalArgumentException
- if the port is not between the valid rangepublic String toString()
public String getComment()
public void setComment(String comment)
comment
- the commentpublic void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeSupport.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeSupport.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
public boolean equals(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |