|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PageBoxLib.PageBoxAPI
Class of the PageBox API.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Field Summary | |
(package private) APIImpl |
impl
Handle on a APIImpl instance |
(package private) java.lang.SecurityManager |
sm
Handle to the Security Manager. |
Constructor Summary | |
PageBoxAPI(java.lang.String archDir)
Constructor. |
Method Summary | |
void |
ActiveNamingLogoff()
Active Naming method. |
void |
ActiveNamingLogon()
Active Naming method. |
void |
addEntry(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif,
java.lang.String url)
Active Naming method. |
void |
clearEntries()
Active Naming method. |
java.lang.String |
getCandidate(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif)
Active Naming method. |
java.lang.String[] |
getClones()
Retrieves the path of this archive clones. |
java.sql.Connection |
getConnection()
Gets a connection from the connection pool. |
java.lang.String |
getControllingPageBoxURL()
Get the URL of the DeployIF Web service of the controlling PageBox. |
java.lang.String[] |
getEntries()
Active Naming method. |
ExtensionIF |
getExtension(java.lang.String name,
java.lang.String parmClass,
java.lang.Object parm)
Get an extension provided by the PageBox. |
LogIF |
getLog()
Returns a Logging object. |
ResourceInfo |
getResource(java.lang.String name)
Get information about a Application server resource. |
ResourceUsage |
getResourceUsage()
Returns resource (CPU, memory) on this PageBox instance. |
boolean |
registerCallback(TokenCallbackIF tci)
Register a PageBoxAPI callback. |
void |
relConnections()
Releases JDBC connections. |
static void |
relConnections(java.lang.String archDir)
Releases JDBC connections. |
void |
removeEntry(java.lang.String name)
Active Naming method. |
boolean |
unregisterCallback()
Unregister a PageBoxAPI callback. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
APIImpl impl
java.lang.SecurityManager sm
Constructor Detail |
public PageBoxAPI(java.lang.String archDir) throws java.security.PrivilegedActionException
archDir
- directory where the archive is definedMethod Detail |
public static void relConnections(java.lang.String archDir)
archDir
- directory where the archive is definedpublic void relConnections()
public LogIF getLog()
public java.sql.Connection getConnection()
public ResourceInfo getResource(java.lang.String name)
public ExtensionIF getExtension(java.lang.String name, java.lang.String parmClass, java.lang.Object parm)
name
- extension nameparmClass
- class of the parmparm
- extension constructor parameter
public java.lang.String[] getClones()
public boolean registerCallback(TokenCallbackIF tci)
public boolean unregisterCallback()
public java.lang.String getControllingPageBoxURL()
public void ActiveNamingLogon()
public void ActiveNamingLogoff()
public java.lang.String[] getEntries()
public java.lang.String getCandidate(java.lang.String name, java.io.Serializable must, ActiveComparable niceif)
name
- entry namemust
- imperative criterianiceif
- optional criteria
public void addEntry(java.lang.String name, java.io.Serializable must, ActiveComparable niceif, java.lang.String url)
name
- entry namemust
- imperative criterianiceif
- optional criteriaurl
- entry urlpublic void removeEntry(java.lang.String name)
name
- entry namepublic void clearEntries()
public ResourceUsage getResourceUsage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |