org.objectweb.jac.ide
Class Application

java.lang.Object
  extended byorg.objectweb.jac.ide.ModelElement
      extended byorg.objectweb.jac.ide.Application

public class Application
extends ModelElement


Constructor Summary
Application()
           
 
Method Summary
 void addAspectConfiguration(AspectConfiguration a)
           
 void addExternalPath(String path)
           
 void addHost(String host)
           
 void addIgnoredClass(String expr)
           
 void addProperty(String name, String value)
           
 boolean canStartSlaves()
           
 void generateCode()
           
 List getAspectConfigurations()
          Get the value of aspectConfigurations.
 int getDebugPort()
           
 List getExternalPaths()
          Get the value of externalPaths.
 List getHosts()
          Get the value of hosts.
 Set getIgnoredClasses()
           
 File getJacFile()
           
 String getJvmOption()
           
 Class getMainClass()
          Get the value of mainClass.
static Collection getMainClasses(Application application)
          Returns available main classes (Classes wich have a static void main(String[]) method)
 String getName()
          Get the value of name.
 String getOtherOption()
           
 Project getProject()
          Get the value of project.
 Map getProperties()
           
 String[] getRunCommandAndArgs()
          Returns the command and arguments to run the application
 String getServerName()
           
 boolean getStartSwingGUI()
           
 boolean getStartWebGUI()
           
 String getSwingGUIs()
           
 String getWebGUIs()
           
 boolean isDistributionEnabled()
           
 boolean isEnableDebugging()
           
 boolean isNotStarted()
           
 boolean isStarted()
           
 void removeAspectConfiguration(AspectConfiguration a)
           
 void removeExternalPath(String path)
           
 void removeHost(String host)
           
 void removeIgnoredClass(String expr)
           
 void removeProperty(String name)
           
 void resetCurrentProcess()
           
 void setDebugPort(int debugPort)
           
 void setEnableDebugging(boolean enableDebugging)
           
 void setEnableDistribution(boolean value)
           
 void setJvmOptions(String options)
           
 void setMainClass(Class v)
          Set the value of mainClass.
 void setName(String v)
          Set the value of name.
 void setOtherOptions(String options)
           
 void setProject(Project v)
          Set the value of project.
 void setServerName(String name)
           
 void setStartSwingGUI(boolean value)
           
 void setStartWebGUI(boolean value)
           
 void setSwingGUIs(String v)
           
 void setTrace(String category, org.apache.log4j.Level level)
          Changes a trace for the running process
 void setWebGUIs(String v)
           
 void start()
           
 void startSlaves()
           
 void stop()
           
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getFullName, getGenerationFullName, getGenerationName, getLinks, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

getHosts

public List getHosts()
Get the value of hosts.

Returns:
value of hosts.

addHost

public void addHost(String host)

removeHost

public void removeHost(String host)

getName

public String getName()
Get the value of name.

Overrides:
getName in class ModelElement
Returns:
value of name.

setName

public void setName(String v)
Set the value of name.

Overrides:
setName in class ModelElement
Parameters:
v - Value to assign to name.

getMainClass

public Class getMainClass()
Get the value of mainClass.

Returns:
value of mainClass.

setMainClass

public void setMainClass(Class v)
Set the value of mainClass.

Parameters:
v - Value to assign to mainClass.

getAspectConfigurations

public List getAspectConfigurations()
Get the value of aspectConfigurations.

Returns:
value of aspectConfigurations.

addAspectConfiguration

public void addAspectConfiguration(AspectConfiguration a)

removeAspectConfiguration

public void removeAspectConfiguration(AspectConfiguration a)

getExternalPaths

public List getExternalPaths()
Get the value of externalPaths.

Returns:
value of externalPaths.

addExternalPath

public void addExternalPath(String path)

removeExternalPath

public void removeExternalPath(String path)

getIgnoredClasses

public Set getIgnoredClasses()

addIgnoredClass

public void addIgnoredClass(String expr)

removeIgnoredClass

public void removeIgnoredClass(String expr)

getProject

public Project getProject()
Get the value of project.

Returns:
value of project.

setProject

public void setProject(Project v)
Set the value of project.

Parameters:
v - Value to assign to project.

setStartSwingGUI

public void setStartSwingGUI(boolean value)

getStartSwingGUI

public boolean getStartSwingGUI()

getSwingGUIs

public String getSwingGUIs()

setSwingGUIs

public void setSwingGUIs(String v)

getWebGUIs

public String getWebGUIs()

setWebGUIs

public void setWebGUIs(String v)

setStartWebGUI

public void setStartWebGUI(boolean value)

getStartWebGUI

public boolean getStartWebGUI()

setEnableDistribution

public void setEnableDistribution(boolean value)

isDistributionEnabled

public boolean isDistributionEnabled()

setServerName

public void setServerName(String name)

getServerName

public String getServerName()

getOtherOption

public String getOtherOption()

setOtherOptions

public void setOtherOptions(String options)

getJvmOption

public String getJvmOption()

setJvmOptions

public void setJvmOptions(String options)

getProperties

public Map getProperties()

addProperty

public void addProperty(String name,
                        String value)

removeProperty

public void removeProperty(String name)

isEnableDebugging

public boolean isEnableDebugging()

setEnableDebugging

public void setEnableDebugging(boolean enableDebugging)

getDebugPort

public int getDebugPort()

setDebugPort

public void setDebugPort(int debugPort)

resetCurrentProcess

public void resetCurrentProcess()

isStarted

public boolean isStarted()

isNotStarted

public boolean isNotStarted()

getJacFile

public File getJacFile()

getRunCommandAndArgs

public String[] getRunCommandAndArgs()
Returns the command and arguments to run the application


start

public void start()
           throws IOException
Throws:
IOException

stop

public void stop()

startSlaves

public void startSlaves()
                 throws IOException
Throws:
IOException

setTrace

public void setTrace(String category,
                     org.apache.log4j.Level level)
              throws Exception
Changes a trace for the running process

Parameters:
category - category of the trace
level - level of the trace (0=quiet,1=verbose,2=more verbose...)
Throws:
Exception

canStartSlaves

public boolean canStartSlaves()

generateCode

public void generateCode()
                  throws org.objectweb.jac.ide.CannotGenerateException,
                         IOException
Throws:
org.objectweb.jac.ide.CannotGenerateException
IOException

getMainClasses

public static Collection getMainClasses(Application application)
Returns available main classes (Classes wich have a static void main(String[]) method)

Parameters:
application - the application to return main classes for