All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wrapper.DmiSP

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

public class DmiSP
extends Object

Constructor Index

 o DmiSP(String, String, String)
Constructor.

Method Index

 o connect(String, String, String)
Bind to the remote system and register with service provider.
 o disconnect()
 o disconnect(long)
Unregister from DmiSP, and unbind from the remote system.
 o getAttribute(int, int, int)
 o getAttribute(long, int, int, int)
Get the value of an attribute of the specified Group of the specified Component of the specified Node.
 o getAttributeList(int, int)
 o getAttributeList(long, int, int)
Get the list of attributes of the specified Group of the specified Component of the specified Node.
 o getComponentList()
 o getComponentList(long)
Get the list of a Node specified by the handle.
 o getGroupList(int)
 o getGroupList(long, int)
Get the list of groups of the specified Component of the specified Node.
 o getHandle()
 o getLanguage()
 o getLanguage(long)
Get the language of the DMI SP.
 o getLanguageList(int, int)
 o getLanguageList(long, int, int)
Returns a list of languages supported by the SP.
 o getVersion()
 o getVersion(long)
Gives the version of this DMISP.
 o isConnected()
 o setAttribute(int, int, int, int, int, String)
 o setAttribute(long, int, int, int, int, int, String)
Sets value of an attribute.
 o setHandle(long)
 o setLanguage(long, String)
Set the language of this DMISP.
 o setLanguage(String)

Constructors

 o DmiSP
 public DmiSP(String name,
              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.
rpc - Name of rpc type. E.g., DCE or ONC.
protocol - Name of the protocol used to communicate. E.g., tcpip, etc.

Methods

 o getHandle
 public long getHandle()
 o setHandle
 public void setHandle(long handle)
 o isConnected
 public boolean isConnected()
 o connect
 public native long connect(String remoteSystem,
                            String rpcType,
                            String tansportType)
Bind to the remote system and register with service provider.

Parameters:
remoteSystem - Remote host name, e.g., nt124.cs.umb.edu.
rpcType - RPC type, e.g., DCE or ONC.
transportType - Protocal name, e.g., ncacn_ip_tcp stands for Windows TCPIP.
Returns:
DmiSP handle of the remote system, null if fails.
 o disconnect
 public void disconnect() throws DmiError
 o disconnect
 public native void disconnect(long handle)
Unregister from DmiSP, and unbind from the remote system.

Parameters:
handle - DmiSP handle of the remote system.
 o getVersion
 public String getVersion() throws DmiError
 o getVersion
 public native String getVersion(long handle)
Gives the version of this DMISP.

Parameters:
handle - DmiSP handle of the remote system.
Returns:
A String as the DMI specification level supported by the SP.
 o getLanguage
 public String getLanguage() throws DmiError
 o getLanguage
 public native String getLanguage(long handle)
Get the language of the DMI SP.

Parameters:
handle - DmiSP handle of the remote system.
Returns:
A String as the current language in use by the SP.
 o setLanguage
 public void setLanguage(String language) throws DmiError
 o setLanguage
 public native void setLanguage(long handle,
                                String language)
Set the language of this DMISP.

Parameters:
handle - DmiSP handle of the remote system.
language - The specific String stands for a language, e.g., "en|usa|iso8881".
 o getComponentList
 public String getComponentList() throws DmiError
 o getComponentList
 public native String getComponentList(long handle)
Get the list of a Node specified by the handle.

Parameters:
handle - DmiSP handle of the local or remote system.
Returns:
A String as a list of components.
 o getLanguageList
 public String getLanguageList(int maxCount,
                               int compId) throws DmiError
 o getLanguageList
 public native String getLanguageList(long handle,
                                      int maxCount,
                                      int compId)
Returns a list of languages supported by the SP.

 o getGroupList
 public String getGroupList(int compId) throws DmiError
 o getGroupList
 public native String getGroupList(long handle,
                                   int compId)
Get the list of groups of the specified Component of the specified Node.

Parameters:
handle - The handle of the DMI SP of a system, specifies the Node.
compId - The ID of the Component, specifies the Component.
Returns:
a list of groups within a component.
 o getAttributeList
 public String getAttributeList(int compId,
                                int grpId) throws DmiError
 o getAttributeList
 public native String getAttributeList(long handle,
                                       int compId,
                                       int grpId)
Get the list of attributes of the specified Group of the specified Component of the specified Node.

Parameters:
handle - The handle of the DMI SP of a system, specifies the Node.
compId - The ID of the Component, specifies the Component.
grpId - The ID of the Group, specifies the Group.
Returns:
a list of attributes within a group.
 o getAttribute
 public String getAttribute(int compId,
                            int grpId,
                            int attrId) throws DmiError
 o getAttribute
 public native String getAttribute(long handle,
                                   int compId,
                                   int grpId,
                                   int attrId)
Get the value of an attribute of the specified Group of the specified Component of the specified Node.

Parameters:
handle - The handle of the DMI SP of a system, specifies the Node.
compId - The ID of the Component, specifies the Component.
grpId - The ID of the Group, specifies the Group.
attrId - The ID of the Attribute, specifies the Attribute.
Returns:
the value of an attribute.
 o setAttribute
 public void setAttribute(int compId,
                          int grpId,
                          int attrId,
                          int setMode,
                          int dataType,
                          String value) throws DmiError
 o setAttribute
 public native void setAttribute(long handle,
                                 int compId,
                                 int grpId,
                                 int attrId,
                                 int setMode,
                                 int dataType,
                                 String value)
Sets value of an attribute.

Parameters:
handle - unique handle of the Dmi Service Provider.
compId - component ID
grpId - group ID
attrId - attribute ID
setMode - set, reserve or release
value - value of this Attribute as a String

All Packages  Class Hierarchy  This Package  Previous  Next  Index