All Packages Class Hierarchy This Package Previous Next Index
Class wrapper.Node
java.lang.Object
|
+----wrapper.Node
- public class Node
- extends Object
-
MINIMUM_VERSION
-
-
USA_ENGLISH
-
-
Node(String, String, String, String)
- Constructor.
-
connect()
- Try to bind to remote system by specific node name, protocol
and process address on the remote system.
-
disconnect()
- Disconnect a session by a unique handle.
-
displayComponents()
- Display all the ComponentB this Node has.
-
getComponentList()
- Get the component list of this Node.
-
getDescription()
- Get this Node's description.
-
getDmiSP()
-
-
getHandle()
- Get the handle of the Service Provider of this Node.
-
getName()
- Get this Node's name.
-
isDmiSPLanguageOK()
- See whether the DMI-SP language of this Node matches local language.
-
isDmiSPVersionOK()
- See whether the DMI-SP version is greater or equal to MINIMUM_VERSION
-
main(String[])
- A stand alone test driver.
-
refresh()
- Update the component list of this Node.
-
setLanguage()
- Set language accrording to this.language
USA_ENGLISH
public static final String USA_ENGLISH
MINIMUM_VERSION
public static final double MINIMUM_VERSION
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.
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
getName
public String getName()
- Get this Node's name.
- Returns:
- A String as the name of this Node.
getDescription
public String getDescription()
- Get this Node's description.
- Returns:
- A String as the description of this Node.
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.
getDmiSP
public DmiSP getDmiSP()
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.
refresh
public void refresh() throws DmiError
- Update the component list of this Node.
- Throws: DmiError
- if cannot get Components list.
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.
disconnect
public void disconnect() throws DmiError
- Disconnect a session by a unique handle.
- Throws: DmiError
- on problem with disconnect from remote system.
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.
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.
setLanguage
public void setLanguage() throws DmiError
- Set language accrording to this.language
- Throws: DmiError
- Cannot set the language
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