Methods Summary |
---|
public static synchronized com.sun.enterprise.deployment.backend.ClientJarMakerRegistry | getInstance()
if (theRegistry==null) {
theRegistry = new ClientJarMakerRegistry();
}
return theRegistry;
|
public boolean | isRegistered(java.lang.String moduleID)
return registeredThreads.containsKey(moduleID);
|
public void | register(java.lang.String moduleID, java.lang.Thread clientJarMaker)Register a new thread in the registry
registeredThreads.put(moduleID, clientJarMaker);
|
public void | unregister(java.lang.String moduleID)Unregister a thread in the registry. This is done when the
thread has finished its execution
registeredThreads.remove(moduleID);
|
public void | waitForCompletion(java.lang.String moduleID)wait for a particular thread maker to finish process before
returning
Thread maker = (Thread) registeredThreads.get(moduleID);
if (maker==null)
return;
try {
maker.join();
} catch(InterruptedException e) {
StringManager localStrings = StringManager.getManager( ClientJarMakerRegistry.class );
DeploymentLogger.get().log(Level.SEVERE,
localStrings.getString("enterprise.deployment.error_creating_client_jar",
e.getLocalizedMessage()) ,e);
}
return;
|