|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.zac.ZAC
This class encapsulates the ZAC kernel API. The main method of this class takes the following options:
$ java weblogic.ZAC [options] -help This information -verbose Debugging information while running (false) -host [host name] WebLogic Server host name (localhost) -port [port] WebLogic Server port number (7001) -name [name] OSD application name, required -user [username] WebLogic username for ZAC access -pass [password] WebLogic password for ZAC access -dir [local dir] Local directory path for application (./[name]) -nolaunch Disable launch -noupdate Disable update -noprogress Don't show progress window (c) 1998-99 BEA Systems, Inc.
Field Summary | |
static int |
ZAC_EXIT_RESTART
If the current application was loaded by a ZAC bootstrapper executable, an exit value of ZAC_EXIT_RESTART will cause the current application to be relaunched identically to the current runtime. |
Constructor Summary | |
ZAC(java.lang.String host,
int port,
java.lang.String applicationName,
java.io.File localDirectory)
Creates a new ZAC without a progress listener. |
|
ZAC(java.lang.String host,
int port,
java.lang.String applicationName,
java.io.File localDirectory,
weblogic.drp.events.ProgressListener pl)
Creates a new ZAC with a progress listener. |
|
ZAC(java.net.URL url,
java.lang.String applicationName,
java.io.File localDirectory,
weblogic.drp.events.ProgressListener pl)
Creates a new ZAC with a progress listener that connects to the WebLogic Server at the specified URL. |
Method Summary | |
void |
delete()
Deletes a ZAC application (currently unimplemented). |
java.lang.ClassLoader |
getClassLoader()
Returns the classloader responsible for loading all the classes of a ZAC instance. |
java.lang.String |
getClasspath()
Gets the system CLASSPATH associated with a ZAC package and its dependencies. |
static ZAC |
getCurrentZAC()
Gets the ZAC instance that loaded the currently running ZAC program. |
java.io.File |
getInstallDirectory()
Gets the install directory associated with a published package. |
java.io.File |
getLocalDirectory()
Gets the local directory associated with a published package. |
protected weblogic.osd.Pakage |
getPackage()
|
java.lang.String |
getPackageName()
Returns the package name of a ZAC package. |
ZACLog |
getZACLog()
Get the ZACLog associated with the last update session. |
void |
launch()
Launches a ZAC application. |
static boolean |
loadedByZAC()
Returns true if ZAC has launched the currently running application (i.e., the caller of this method). |
void |
loadLocalSubZacs()
Loads all local dependencies without initiating any network IO. |
static void |
main(java.lang.String[] args)
Updates the application listed on the command line and then launches the application. |
void |
postUpdate()
Invokes the post-update hook, if any. |
void |
preUpdate()
Invokes the pre-update hook, if any. |
void |
progressChanged(weblogic.drp.events.ProgressEvent pe)
Updates the progress listener for a ZAC package to a "changed" state. |
void |
progressDone(weblogic.drp.events.ProgressEvent pe)
Updates the progress listener for a ZAC package to a "done" state. |
void |
progressStarting(weblogic.drp.events.ProgressEvent pe)
Updates the progress listener for a ZAC package to a "starting" state. |
void |
setDoUpdate(boolean b)
Sets whether the ZAC package does automatic updating. |
void |
setProgressListener(weblogic.drp.events.ProgressListener pl)
Sets the progress listener for a ZAC package. |
void |
update()
update() will sync the local directory of this ZAC object with
the current state of the package on the server. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ZAC_EXIT_RESTART
Constructor Detail |
public ZAC(java.lang.String host, int port, java.lang.String applicationName, java.io.File localDirectory, weblogic.drp.events.ProgressListener pl)
host
- Hostname of publishing WebLogic Serverport
- Port at which WebLogic is listening for login requestsapplicationName
- Name of the published applicationlocalDirectory
- Location on client's machine where downloaded
files should be storedpl
- Listener for progresspublic ZAC(java.lang.String host, int port, java.lang.String applicationName, java.io.File localDirectory)
host
- Hostname of publishing WebLogic Serverport
- Port at which WebLogic is listening for login requestsapplicationName
- Name of the published applicationlocalDirectory
- Location on client's machine where downloaded
files should be storedpublic ZAC(java.net.URL url, java.lang.String applicationName, java.io.File localDirectory, weblogic.drp.events.ProgressListener pl)
url
- URL for publishing WebLogic ServerapplicationName
- Name of the published applicationlocalDirectory
- Location on client's machine where downloaded
files should be storedpl
- Listener for progressMethod Detail |
public java.io.File getLocalDirectory()
public java.io.File getInstallDirectory()
public static boolean loadedByZAC()
public static ZAC getCurrentZAC()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentspublic ZACLog getZACLog()
public void loadLocalSubZacs()
public void update()
update()
will sync the local directory of this ZAC object with
the current state of the package on the server. The server is determined
by the hostname and port that this ZAC object was created with.
After update()
is called, one can review the
ZACLog as returned by getZACLog() to see how
the update went. The ZACLog will tell how many files were updated, the names
of those files, or, if the update failed, why it failed.
public void preUpdate()
public void postUpdate()
public void delete()
public void launch() throws java.lang.Exception
public java.lang.ClassLoader getClassLoader()
protected weblogic.osd.Pakage getPackage() throws weblogic.xml.parser.ParseException, java.io.IOException
public java.lang.String getClasspath() throws weblogic.xml.parser.ParseException, java.io.IOException
public void progressStarting(weblogic.drp.events.ProgressEvent pe)
pe
- ProgressEventpublic void progressChanged(weblogic.drp.events.ProgressEvent pe)
pe
- ProgressEventpublic void progressDone(weblogic.drp.events.ProgressEvent pe)
pe
- ProgressEventpublic void setProgressListener(weblogic.drp.events.ProgressListener pl)
pl
- ProgressListenerpublic void setDoUpdate(boolean b)
public java.lang.String getPackageName()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |