com.sun.enterprise.ee.cms.impl.base
Interface SystemAdvertisement

All Superinterfaces:
Cloneable, Comparable<SystemAdvertisement>, Serializable
All Known Implementing Classes:
SystemAdvertisementImpl

public interface SystemAdvertisement
extends Comparable<SystemAdvertisement>, Cloneable, Serializable

This interface provides system characteristics i.g. HW/SW configuration, CPU load, etc...

Author:
Bongjae Chang

Field Summary
static String hwarchTag
           
static String hwvendorTag
           
static String idTag
           
static String ipTag
           
static String nameTag
           
static String OSarchTag
           
static String OSNameTag
           
static String OSVersionTag
           
static long serialVersionUID
           
 
Method Summary
 void addEndpointAddress(String value)
          Sets the network interface's address in the form of a URI
 Map<String,String> getCustomTags()
           
 String getCustomTagValue(String tagName)
           
 List<String> getEndpointAddresses()
          Gets the address of the network interface in the form of URI
 String getHWArch()
          Gets the hWArch attribute of the SystemAdvertisement object
 String getHWVendor()
          Gets the hWVendor attribute of the SystemAdvertisement object
 PeerID getID()
          returns the id of the device
 String getName()
          Gets the name attribute of the SystemAdvertisement object
 String getOSArch()
          Gets the OSArch attribute of the SystemAdvertisement object
 String getOSName()
          Gets the OSName attribute of the SystemAdvertisement object
 String getOSVersion()
          Gets the OSVersion attribute of the SystemAdvertisement object
 List<URI> getURIs()
           
 void setCustomTag(String tag, String value)
           
 void setCustomTags(Map<String,String> tags)
           
 void setEndpointAddresses(List<String> endpoints)
          API for setting the IP addresses for all the network interfaces
 void setHWArch(String hwarch)
          Sets the hWArch attribute of the SystemAdvertisement object
 void setHWVendor(String hwvendor)
          Sets the hWVendor attribute of the SystemAdvertisement object
 void setID(PeerID id)
          sets the unique id
 void setName(String name)
          Sets the name attribute of the DeviceAdvertisement object
 void setOSArch(String osarch)
          Sets the OSArch attribute of the SystemAdvertisement object
 void setOSName(String osname)
          Sets the oSName attribute of the SystemAdvertisement object
 void setOSVersion(String osversion)
          Sets the oSVersion attribute of the SystemAdvertisement object
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

OSNameTag

static final String OSNameTag
See Also:
Constant Field Values

OSVersionTag

static final String OSVersionTag
See Also:
Constant Field Values

OSarchTag

static final String OSarchTag
See Also:
Constant Field Values

hwarchTag

static final String hwarchTag
See Also:
Constant Field Values

hwvendorTag

static final String hwvendorTag
See Also:
Constant Field Values

idTag

static final String idTag
See Also:
Constant Field Values

ipTag

static final String ipTag
See Also:
Constant Field Values

nameTag

static final String nameTag
See Also:
Constant Field Values
Method Detail

setHWArch

void setHWArch(String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object

Parameters:
hwarch - The new hWArch value

setOSArch

void setOSArch(String osarch)
Sets the OSArch attribute of the SystemAdvertisement object

Parameters:
osarch - The new hWArch value

setHWVendor

void setHWVendor(String hwvendor)
Sets the hWVendor attribute of the SystemAdvertisement object

Parameters:
hwvendor - The new hWVendor value

setID

void setID(PeerID id)
sets the unique id

Parameters:
id - The id

addEndpointAddress

void addEndpointAddress(String value)
Sets the network interface's address in the form of a URI

Parameters:
value - new uri (tcp://host:port)

setEndpointAddresses

void setEndpointAddresses(List<String> endpoints)
API for setting the IP addresses for all the network interfaces

Parameters:
endpoints - endpoint addresses

setName

void setName(String name)
Sets the name attribute of the DeviceAdvertisement object

Parameters:
name - The new name value

setOSName

void setOSName(String osname)
Sets the oSName attribute of the SystemAdvertisement object

Parameters:
osname - The new oSName value

setOSVersion

void setOSVersion(String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object

Parameters:
osversion - The new oSVersion value

setCustomTag

void setCustomTag(String tag,
                  String value)

setCustomTags

void setCustomTags(Map<String,String> tags)

getHWArch

String getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object

Returns:
The hWArch value

getOSArch

String getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object

Returns:
The OSArch value

getHWVendor

String getHWVendor()
Gets the hWVendor attribute of the SystemAdvertisement object

Returns:
The hWVendor value

getID

PeerID getID()
returns the id of the device

Returns:
ID the device id

getEndpointAddresses

List<String> getEndpointAddresses()
Gets the address of the network interface in the form of URI

Returns:
the list of URIs for all the network interfaces

getURIs

List<URI> getURIs()

getName

String getName()
Gets the name attribute of the SystemAdvertisement object

Returns:
The name value

getOSName

String getOSName()
Gets the OSName attribute of the SystemAdvertisement object

Returns:
The OSName value

getOSVersion

String getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object

Returns:
The OSVersion value

getCustomTagValue

String getCustomTagValue(String tagName)
                         throws NoSuchFieldException
Throws:
NoSuchFieldException

getCustomTags

Map<String,String> getCustomTags()


Copyright © 2012. All Rights Reserved.