orca.shirako.plugins.config
Class AntConfig

java.lang.Object
  extended by orca.shirako.plugins.config.Config
      extended by orca.shirako.plugins.config.AntConfig
All Implemented Interfaces:
IInitialize, ISerialize
Direct Known Subclasses:
CodAntConfig

public class AntConfig
extends Config


Field Summary
protected  int capacity
           
static int DefaultCapacity
           
static int DefaultThreads
           
protected  java.lang.String defaultXml
           
static java.lang.String DefaultXml
           
protected  java.util.Hashtable<java.lang.String,ConfigurationMapping> files
           
protected  boolean go
           
protected  java.lang.Object lock
           
protected  int maxThreads
           
static int pollInterval
           
static java.lang.String PropertyActorID
           
static java.lang.String PropertyAntFile
           
static java.lang.String PropertyAntProjectHelper
           
static java.lang.String PropertyAxis2Repository
           
static java.lang.String PropertyConfigCount
           
static java.lang.String PropertyConfigFilePrefix
           
static java.lang.String PropertyConfigTypePrefix
           
static java.lang.String PropertyContainerGuid
           
static java.lang.String PropertyEmulation
           
static java.lang.String PropertyEndTime
           
static java.lang.String PropertyNodeAgentPort
           
static java.lang.String PropertyNodeAgentProtocol
           
static java.lang.String PropertyNodeAgentUri
           
static java.lang.String PropertyRootDir
           
static java.lang.String PropertySecureCommunication
           
static java.lang.String PropertyStartTime
           
static java.lang.String PropertyXmlFile
           
protected  int size
           
protected  java.util.LinkedList<orca.shirako.plugins.config.AntConfig.RunConfig> tasks
           
protected  java.lang.Thread[] threads
           
 
Fields inherited from class orca.shirako.plugins.config.Config
isSynchronous, logger, plugin, PropertyActionSequenceNumber, PropertyConfig, PropertyConfigurationProperties, PropertyExceptionMessage, PropertyExceptionStack, PropertyOutputPrefix, PropertyResourceType, PropertySavePrefix, PropertyTargetName, PropertyTargetResultCode, PropertyTargetResultCodeMessage, PropertyUnitAll, ResultCodeException, ResultCodeOK, TargetJoin, TargetLeave, TargetModify, TargetProbe, TargetRecover
 
Constructor Summary
AntConfig()
           
AntConfig(ShirakoPlugin plugin)
           
 
Method Summary
 void addConfigFile(ResourceType resourceType, java.lang.String file)
           
 void addConfigMapping(ConfigurationMapping mapping)
           
protected  void attachConfigFile(java.util.Properties properties)
           
 void configure(java.util.Properties p)
           
 void enqueueBlocking(orca.shirako.plugins.config.AntConfig.RunConfig task)
           
protected  ResourceType getResourceType(java.util.Properties p)
           
 void initialize()
          Initializes the object.
 void join(java.lang.Object token, java.util.Properties p)
           
 void leave(java.lang.Object token, java.util.Properties p)
           
protected  void loadMapping()
           
 void modify(java.lang.Object token, java.util.Properties p)
           
protected  void preprocess(java.util.Properties p)
           
 void probe(java.lang.Object token, java.util.Properties p)
           
 void recover(java.lang.Object token, java.util.Properties p)
           
 void revisit(Actor actor, java.util.Properties p)
           
 void setConfigFile(java.lang.String config)
           
 void setDefaultXml(java.lang.String value)
           
protected  void setHandlerProperties(java.util.Properties properties)
           
protected  void storeMapping()
           
protected  void storeMapping(ConfigurationMapping mapping)
           
 
Methods inherited from class orca.shirako.plugins.config.Config
getActionSequenceNumber, printProperties, reset, revisit, save, save, setActionSequenceNumber, setAll, setLogger, setSlicesPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultCapacity

public static int DefaultCapacity

DefaultThreads

public static int DefaultThreads

pollInterval

public static int pollInterval

capacity

protected int capacity

maxThreads

protected int maxThreads

threads

protected java.lang.Thread[] threads

lock

protected java.lang.Object lock

tasks

protected java.util.LinkedList<orca.shirako.plugins.config.AntConfig.RunConfig> tasks

size

protected int size

go

protected boolean go

PropertyAntFile

public static final java.lang.String PropertyAntFile
See Also:
Constant Field Values

PropertyAntProjectHelper

public static final java.lang.String PropertyAntProjectHelper
See Also:
Constant Field Values

DefaultXml

public static final java.lang.String DefaultXml
See Also:
Constant Field Values

PropertyXmlFile

public static final java.lang.String PropertyXmlFile
See Also:
Constant Field Values

PropertyConfigCount

public static final java.lang.String PropertyConfigCount
See Also:
Constant Field Values

PropertyConfigTypePrefix

public static final java.lang.String PropertyConfigTypePrefix
See Also:
Constant Field Values

PropertyConfigFilePrefix

public static final java.lang.String PropertyConfigFilePrefix
See Also:
Constant Field Values

PropertyRootDir

public static final java.lang.String PropertyRootDir
See Also:
Constant Field Values

PropertyActorID

public static final java.lang.String PropertyActorID
See Also:
Constant Field Values

PropertyContainerGuid

public static final java.lang.String PropertyContainerGuid
See Also:
Constant Field Values

PropertyAxis2Repository

public static final java.lang.String PropertyAxis2Repository
See Also:
Constant Field Values

PropertySecureCommunication

public static final java.lang.String PropertySecureCommunication
See Also:
Constant Field Values

PropertyEmulation

public static final java.lang.String PropertyEmulation
See Also:
Constant Field Values

PropertyNodeAgentPort

public static final java.lang.String PropertyNodeAgentPort
See Also:
Constant Field Values

PropertyNodeAgentProtocol

public static final java.lang.String PropertyNodeAgentProtocol
See Also:
Constant Field Values

PropertyNodeAgentUri

public static final java.lang.String PropertyNodeAgentUri
See Also:
Constant Field Values

PropertyStartTime

public static final java.lang.String PropertyStartTime
See Also:
Constant Field Values

PropertyEndTime

public static final java.lang.String PropertyEndTime
See Also:
Constant Field Values

files

protected java.util.Hashtable<java.lang.String,ConfigurationMapping> files

defaultXml

protected java.lang.String defaultXml
Constructor Detail

AntConfig

public AntConfig()

AntConfig

public AntConfig(ShirakoPlugin plugin)
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: IInitialize
Initializes the object.

Specified by:
initialize in interface IInitialize
Overrides:
initialize in class Config
Throws:
java.lang.Exception

storeMapping

protected void storeMapping()
                     throws java.lang.Exception
Throws:
java.lang.Exception

loadMapping

protected void loadMapping()
                    throws java.lang.Exception
Throws:
java.lang.Exception

revisit

public void revisit(Actor actor,
                    java.util.Properties p)
             throws java.lang.Exception
Throws:
java.lang.Exception

storeMapping

protected void storeMapping(ConfigurationMapping mapping)

addConfigMapping

public void addConfigMapping(ConfigurationMapping mapping)

addConfigFile

public void addConfigFile(ResourceType resourceType,
                          java.lang.String file)

setConfigFile

public void setConfigFile(java.lang.String config)

configure

public void configure(java.util.Properties p)
               throws java.lang.Exception
Throws:
java.lang.Exception

getResourceType

protected ResourceType getResourceType(java.util.Properties p)
                                throws java.lang.Exception
Throws:
java.lang.Exception

attachConfigFile

protected void attachConfigFile(java.util.Properties properties)
                         throws java.lang.Exception
Throws:
java.lang.Exception

preprocess

protected void preprocess(java.util.Properties p)

enqueueBlocking

public void enqueueBlocking(orca.shirako.plugins.config.AntConfig.RunConfig task)
                     throws java.lang.Exception
Throws:
java.lang.Exception

join

public void join(java.lang.Object token,
                 java.util.Properties p)
          throws java.lang.Exception
Overrides:
join in class Config
Parameters:
token - A token to use for the callback
Throws:
java.lang.Exception

leave

public void leave(java.lang.Object token,
                  java.util.Properties p)
           throws java.lang.Exception
Overrides:
leave in class Config
Throws:
java.lang.Exception

probe

public void probe(java.lang.Object token,
                  java.util.Properties p)
           throws java.lang.Exception
Overrides:
probe in class Config
Throws:
java.lang.Exception

recover

public void recover(java.lang.Object token,
                    java.util.Properties p)
             throws java.lang.Exception
Overrides:
recover in class Config
Throws:
java.lang.Exception

modify

public void modify(java.lang.Object token,
                   java.util.Properties p)
            throws java.lang.Exception
Overrides:
modify in class Config
Throws:
java.lang.Exception

setDefaultXml

public void setDefaultXml(java.lang.String value)

setHandlerProperties

protected void setHandlerProperties(java.util.Properties properties)


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.