|
UNICORE Resource Broker Client Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pallas.unicore.client.util.UnicorePlugable | +--com.pallas.unicore.client.util.ExtensionPlugable | +--org.eurogrid.broker.client.BrokerPlugin
Main class for Resource Broker client plugin
Field Summary | |
static String |
VERSION
Version number. |
Constructor Summary | |
BrokerPlugin()
|
Method Summary | |
boolean |
brokerAtVsites(Collection vsites,
Map vsitesToUsites,
AbstractJob job,
ConsignedMessageHandler handler)
Broker job (current or given) at a given list of vsites |
void |
brokerCurrentVsite()
Broker job group at currently selected Vsite |
boolean |
brokerJob(AbstractJob job,
ConsignedMessageHandler handler)
Broker job (current or given) at user's default vsites. |
void |
brokerPresetVsite()
Broker job group at preset Vsites (in plugin settings) |
void |
consigned(AbstractJob job,
int resultCode,
String reason,
int otherSubmissionErrors,
String computedMessage)
Called to indicate what the result of consigning a job is. |
void |
consigning(AbstractJob job,
Vsite targetVsite)
|
protected static boolean |
decodeBrokerThis(String brokerThisText)
Decodes the "broker this" NJS tag to decide whether to broker for the site or not. |
protected static void |
decodeUsites(String usitesList,
List list,
Map vToU,
boolean addVsites,
String context)
Get list of Usites from a String. |
protected static void |
decodeUsiteVsitePairs(String pairsList,
List list,
Map vToU,
String context)
Get list of Usite and Vsite pairs from a String. |
protected static void |
decodeVsites(String vsitesList,
com.pallas.unicore.extensions.Usite usite,
List list,
Map vToU,
String context)
Get a list of Usites from a String. |
JMenuItem |
getCustomMenu()
Return the sub menu for the extension menu |
Component |
getJPAToolBarComponent()
Return a button that brokers the current job group at the default Vsites. |
protected Logger |
getLogger()
Get the broker plugin logger object |
String |
getPluginInfo()
Get a short info message for the plugin |
JMenuItem |
getSettingsItem()
Make item for settings menu |
Component |
getVsiteToolBarComponent()
Gets the vsiteToolBarComponent attribute of the BrokerPlugin object. |
protected static com.pallas.unicore.extensions.Usite |
lookupUsite(String usiteAddr)
Return the Usite from the ResourceManager that matches the
given URL (passed as a String). |
protected static Vsite |
lookupVsite(com.pallas.unicore.extensions.Usite usite,
String vsiteName)
Return the Vsite from the ResourceManager that matches the
given Usite and Vsite name |
protected static void |
setUpVsiteUsiteMap(List vsites,
Map vsiteToUsite)
|
void |
startPlugin()
Called to initialize the plugin |
void |
stopPlugin()
Called when terminating |
Methods inherited from class com.pallas.unicore.client.util.ExtensionPlugable |
setupSpecialVsiteFeatures |
Methods inherited from class com.pallas.unicore.client.util.UnicorePlugable |
getClient, getHelpSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VERSION
Constructor Detail |
public BrokerPlugin()
Method Detail |
public boolean brokerAtVsites(Collection vsites, Map vsitesToUsites, AbstractJob job, ConsignedMessageHandler handler)
brokerAtVsites
in interface BrokerAgent
vsites
- The list of Vsite objectsvsitesToUsites
- Mapping from each Vsite
to its Usite
.job
- The job to submit, or null to submit the current job
in the GUI panel.handler
- Callback to allow for notification of the outcome of the job
consignment.
public void brokerCurrentVsite()
public boolean brokerJob(AbstractJob job, ConsignedMessageHandler handler)
brokerJob
in interface BrokerAgent
job
- The job to submit, or null to submit the current job
in the GUI panel.handler
- Callback to allow for notification of the outcome of the job
consignment.
public void brokerPresetVsite()
public void consigned(AbstractJob job, int resultCode, String reason, int otherSubmissionErrors, String computedMessage)
ConsignedMessageHandler
consigned
in interface ConsignedMessageHandler
resultCode
- The result code. Zero indicates no error.reason
- The reason why the result is the way it is (assuming it isn't
success.)otherSubmissionErrors
- Indication whether "other" errors happened during job
submission. Zero indicates no error.computedMessage
- A human-readable message that describes the problems.public void consigning(AbstractJob job, Vsite targetVsite)
consigning
in interface ConsignedMessageHandler
protected static boolean decodeBrokerThis(String brokerThisText)
brokerThisText
- The value of the "broker this" tag
protected static void decodeUsites(String usitesList, List list, Map vToU, boolean addVsites, String context)
usitesList
- The Usites, space separated listlist
- The destination list of Usites or VsitesvToU
- Mapping from Vsites to UsitesaddVsites
- If true, Vsites are added, otherwise Usitescontext
- Context string for error reportingprotected static void decodeUsiteVsitePairs(String pairsList, List list, Map vToU, String context)
pairsList
- The Usite and Vsite pairs, space separated listlist
- The destination list of VsitesvToU
- Mapping from Vsites to Usitescontext
- Context string for error reportingprotected static void decodeVsites(String vsitesList, com.pallas.unicore.extensions.Usite usite, List list, Map vToU, String context)
vsitesList
- The Vsites, space separated listusite
- The Usite at which the Vsites arelist
- The destination list of VsitesvToU
- Mapping from Vsites to Usitescontext
- Context string for error reportingpublic JMenuItem getCustomMenu()
getCustomMenu
in class com.pallas.unicore.client.util.ExtensionPlugable
public Component getJPAToolBarComponent()
getJPAToolBarComponent
in class com.pallas.unicore.client.util.ExtensionPlugable
protected Logger getLogger()
public String getPluginInfo()
getPluginInfo
in class com.pallas.unicore.client.util.UnicorePlugable
public JMenuItem getSettingsItem()
getSettingsItem
in class com.pallas.unicore.client.util.UnicorePlugable
public Component getVsiteToolBarComponent()
getVsiteToolBarComponent
in class com.pallas.unicore.client.util.ExtensionPlugable
protected static com.pallas.unicore.extensions.Usite lookupUsite(String usiteAddr) throws MalformedURLException
ResourceManager
that matches the
given URL (passed as a String).
usiteAddr
- The String of the Usite's URL
MalformedURLException
protected static Vsite lookupVsite(com.pallas.unicore.extensions.Usite usite, String vsiteName)
ResourceManager
that matches the
given Usite and Vsite name
usite
- The UsitevsiteName
- The name of the Vsite
protected static void setUpVsiteUsiteMap(List vsites, Map vsiteToUsite)
public void startPlugin()
startPlugin
in class com.pallas.unicore.client.util.UnicorePlugable
public void stopPlugin()
stopPlugin
in class com.pallas.unicore.client.util.UnicorePlugable
|
UNICORE Resource Broker Client Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |