All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.impl.agent.services.loader.rmi.NetLibLoader
java.lang.Object
|
+----com.sun.jaw.impl.agent.services.loader.rmi.NetLibLoader
- public class NetLibLoader
- extends Object
- implements Serializable
The LibraryLoader class loads native dynamic libraries.
These libraries are usually associated with native methods.
If the library can be found locally on the system, it is loaded. If the library
does not exist on the local system it is downloaded from the library server.
The library path used by default for locating libraries depends on the operating environment:
- Solaris :
/tmp
- Windows NT :
<installDir>\SUNWconn\jaw\tmp
The server attempts to locate the library in:
- <librarypath>
/OSName/OSArch/OSVersion/lib
For example:
- Solaris :
/tmp/Solaris/2.x/sparc/lib
- Windows NT :
C:\Program Files\SUNWconn\jaw\tmp\WindowsNT\x86\4.0\lib
-
NetLibLoader(ObjectName)
- Create a new instance of
NetLibLoader.
-
getClassVersion()
- Returns the version of this class.
-
getLibPaths()
- Returns the current libpath used by this library loader to locally store
the libraries coming from the Class Server before they are loaded.
-
loadLibrary(NetClassServer, String, String)
- Loads a dynamic native library.
-
setLibPaths(Vector)
- Sets the current libpath used by this library loader to locally store
the libraries coming from the Class Server before they are loaded.
NetLibLoader
public NetLibLoader(ObjectName name)
- Create a new instance of
NetLibLoader.
The library path to look for libraries can be provided when creating
the library loader, if not provided, the default one will be used.
loadLibrary
public void loadLibrary(NetClassServer server,
String baseName,
String libName) throws SecurityException, UnsatisfiedLinkError
- Loads a dynamic native library.
- Parameters:
- server - The Class Server from where the library is to be downloaded.
- basename - The basename argument is the unique library base name where the
library is stored on the management server.
- libname - The libname argument is either the full pathname of the library
below the library base path or is a simple, architecture-independent
library name where the path, prefix, and suffix for the library name
are generated based on the appliance type on which the loadLibrary()
call was made.
- Throws: SecurityException
- If the current thread cannot load the specified dynamic library.
- Throws: UnsatisfiedLinkError
- If the library does not exist.
getLibPaths
public Vector getLibPaths()
- Returns the current libpath used by this library loader to locally store
the libraries coming from the Class Server before they are loaded.
setLibPaths
public void setLibPaths(Vector newValue)
- Sets the current libpath used by this library loader to locally store
the libraries coming from the Class Server before they are loaded.
getClassVersion
public String getClassVersion()
- Returns the version of this class.
All Packages Class Hierarchy This Package Previous Next Index