g-Eclipse
Release 1.0.0

eu.geclipse.batch
Class BatchConnectionInfo

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.AbstractGridContainer
              extended by eu.geclipse.core.model.impl.ResourceGridContainer
                  extended by eu.geclipse.batch.BatchConnectionInfo
All Implemented Interfaces:
IGridContainer, IGridElement, IGridSiteConfig, IStorableElement

public class BatchConnectionInfo
extends ResourceGridContainer
implements IGridSiteConfig

Holder object for the necessary information to connect to a batch service.


Constructor Summary
BatchConnectionInfo(IFile file)
          Create a new Batch service description from the specified IFile.
 
Method Summary
 java.lang.String getAccount()
           
 java.lang.String getBatchName()
           
 java.lang.String getBatchType()
           
 int getUpdateInterval()
           
 void load()
          Load the properties of that element.
 void save()
          Write the properties of this element.
 void setConnectionInfo(java.lang.String bName, java.lang.String acc, java.lang.String type, int interval)
          Sets the properties of the connection
 
Methods inherited from class eu.geclipse.core.model.impl.ResourceGridContainer
getFileStore, getName, getParent, getPath, getResource, isLazy, isLocal
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer
canContain, contains, create, delete, deleteAll, dispose, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridContainer
canContain, contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 

Constructor Detail

BatchConnectionInfo

public BatchConnectionInfo(IFile file)
Create a new Batch service description from the specified IFile.

Parameters:
file - The file from which to create the description.
Method Detail

setConnectionInfo

public void setConnectionInfo(java.lang.String bName,
                              java.lang.String acc,
                              java.lang.String type,
                              int interval)
Sets the properties of the connection

Parameters:
bName -
acc -
type -
interval -

getAccount

public java.lang.String getAccount()
Returns:
the account

getBatchName

public java.lang.String getBatchName()
Returns:
the batchName

getBatchType

public java.lang.String getBatchType()
Returns:
the batchType

getUpdateInterval

public int getUpdateInterval()
Returns:
the updateInterval

load

public void load()
          throws ProblemException
Description copied from interface: IStorableElement
Load the properties of that element. That may cause that some predefined properties may be overwritten with the loaded properties. The element itself has to know from where to load itself.

Specified by:
load in interface IStorableElement
Throws:
ProblemException - If an error occurs while loading this element. This is mainly due to IOExceptions.

save

public void save()
          throws ProblemException
Description copied from interface: IStorableElement
Write the properties of this element. The element itself has to know where to save itself.

Specified by:
save in interface IStorableElement
Throws:
ProblemException - If an error occurs while saving this element. This is mainly due to IOExceptions.

g-Eclipse
Release 1.0.0