All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wrapper.Node

java.lang.Object
   |
   +----wrapper.Node

public class Node
extends Object

Variable Index

 o MINIMUM_VERSION
 o USA_ENGLISH

Constructor Index

 o Node(String, String, String, String)
Constructor.

Method Index

 o connect()
Try to bind to remote system by specific node name, protocol and process address on the remote system.
 o disconnect()
Disconnect a session by a unique handle.
 o displayComponents()
Display all the ComponentB this Node has.
 o getComponentList()
Get the component list of this Node.
 o getDescription()
Get this Node's description.
 o getDmiSP()
 o getHandle()
Get the handle of the Service Provider of this Node.
 o getName()
Get this Node's name.
 o isDmiSPLanguageOK()
See whether the DMI-SP language of this Node matches local language.
 o isDmiSPVersionOK()
See whether the DMI-SP version is greater or equal to MINIMUM_VERSION
 o main(String[])
A stand alone test driver.
 o refresh()
Update the component list of this Node.
 o setLanguage()
Set language accrording to this.language

Variables

 o USA_ENGLISH
 public static final String USA_ENGLISH
 o MINIMUM_VERSION
 public static final double MINIMUM_VERSION

Constructors

 o Node
 public Node(String name,
             String language,
             String rpc,
             String protocol)
Constructor.

Parameters:
name - Name of the system, local or remote, will be tested. E.g., eris, nt124.cs.umb.edu, etc.
language - The desired language of the system being tested. E.g., English, Spanish, Chinese, etc.
rpc - Name of rpc type. E.g., DCE or ONC.
protocol - Name of the protocol used to communicate. E.g., tcpip, etc.

Methods

 o main
 public static void main(String argv[])
A stand alone test driver. This will test Node.java: connect(), disconnect(), getComponentList() ComponentB.java: getGroupList() Group.java: getAttributeList() Attribute.java: getValue(), setValue() DmiSP.java: everything DmiSP.cpp: everything

 o getName
 public String getName()
Get this Node's name.

Returns:
A String as the name of this Node.
 o getDescription
 public String getDescription()
Get this Node's description.

Returns:
A String as the description of this Node.
 o getHandle
 public long getHandle()
Get the handle of the Service Provider of this Node.

Returns:
A long integer as the unique handle of the DMI Service Provider this Node.
 o getDmiSP
 public DmiSP getDmiSP()
 o getComponentList
 public ComponentB[] getComponentList() throws DmiError
Get the component list of this Node.

Returns:
an array of ComponentB of this Node.
Throws: DmiError
on problem with unable getting component list.
 o refresh
 public void refresh() throws DmiError
Update the component list of this Node.

Throws: DmiError
if cannot get Components list.
 o connect
 public String connect() throws DmiError
Try to bind to remote system by specific node name, protocol and process address on the remote system.

Returns:
name of the connected node if successfully connect, throws DmiError if fail.
Throws: DmiError
on problem with connection or get/set language, or get version.
 o disconnect
 public void disconnect() throws DmiError
Disconnect a session by a unique handle.

Throws: DmiError
on problem with disconnect from remote system.
 o isDmiSPVersionOK
 public boolean isDmiSPVersionOK() throws DmiError
See whether the DMI-SP version is greater or equal to MINIMUM_VERSION

Returns:
true if the version >= MINIMUM_VERSION, false otherwise.
Throws: DmiError
if cannot get the version.
 o isDmiSPLanguageOK
 public boolean isDmiSPLanguageOK() throws DmiError
See whether the DMI-SP language of this Node matches local language.

Returns:
true if the language is the same as desired, false otherwise.
Throws: DmiError
if cannot get the language.
 o setLanguage
 public void setLanguage() throws DmiError
Set language accrording to this.language

Throws: DmiError
Cannot set the language
 o displayComponents
 public void displayComponents()
Display all the ComponentB this Node has. Each ComponentB is in String format.


All Packages  Class Hierarchy  This Package  Previous  Next  Index