|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--prometheus.EntriesBean
Active Naming: model for entry point management
Changes:alexis.grandemange@pagebox.net
Copyright (c) 2003-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 | |
private java.util.HashMap |
entries
Entries map. key: name Value: Entry object |
(package private) boolean |
initialized
true when init has been called |
(package private) PageBoxAPI |
inst
PageBox API instance |
(package private) PageBoxLib.LogIF |
log
Logging object |
| Constructor Summary | |
EntriesBean()
|
|
| Method Summary | |
(package private) void |
addEntry(java.lang.String name,
java.lang.String must,
java.lang.String niceif,
java.lang.String url)
Adds a new entry point. |
(package private) void |
end()
Called by EntriesCtrl in case of application unload. |
java.lang.String |
getEntries()
Method called by entries.jsp to return formatted messages. |
java.lang.String |
getNames()
Method called by routing.jsp to return select options. |
java.lang.String |
getResourceUsage()
Returns the CPU, memory and network resources on this PageBox. |
(package private) void |
init(java.lang.String workDir)
Initializer. |
(package private) java.lang.String |
redirect(java.io.PrintWriter pw,
java.lang.String name,
java.lang.String must,
java.lang.String niceif)
Method to redirect to the service instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.HashMap entries
PageBoxAPI inst
PageBoxLib.LogIF log
boolean initialized
| Constructor Detail |
public EntriesBean()
| Method Detail |
void init(java.lang.String workDir)
workDir - Prometheus directory
void addEntry(java.lang.String name,
java.lang.String must,
java.lang.String niceif,
java.lang.String url)
name - logical name of the entry pointmust - must dataniceif - niceif dataurl - URL of the service instancevoid end()
public java.lang.String getEntries()
public java.lang.String getNames()
java.lang.String redirect(java.io.PrintWriter pw,
java.lang.String name,
java.lang.String must,
java.lang.String niceif)
pw - servlet print writername - logical name of the entry pointmust - must dataniceif - niceif data
public java.lang.String getResourceUsage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||