Package step.functions.packages
Class FunctionPackage
- java.lang.Object
-
- step.core.accessors.AbstractIdentifiableObject
-
- step.core.accessors.AbstractOrganizableObject
-
- step.functions.packages.FunctionPackage
-
- All Implemented Interfaces:
EnricheableObject
public class FunctionPackage extends step.core.accessors.AbstractOrganizableObject implements EnricheableObject
Represents a package ofFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
executeLocally
protected java.util.List<org.bson.types.ObjectId>
functions
Keep track of the functions added by this packageprotected java.util.Map<java.lang.String,java.lang.String>
packageAttributes
protected java.lang.String
packageLibrariesLocation
protected java.lang.String
packageLocation
protected java.util.Map<java.lang.String,java.lang.String>
tokenSelectionCriteria
protected boolean
watchForChange
-
Constructor Summary
Constructors Constructor Description FunctionPackage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bson.types.ObjectId>
getFunctions()
java.util.Map<java.lang.String,java.lang.String>
getPackageAttributes()
java.lang.String
getPackageLibrariesLocation()
java.lang.String
getPackageLocation()
java.util.Map<java.lang.String,java.lang.String>
getTokenSelectionCriteria()
boolean
isExecuteLocally()
boolean
isWatchForChange()
void
setExecuteLocally(boolean executeLocally)
void
setFunctions(java.util.List<org.bson.types.ObjectId> functions)
void
setPackageAttributes(java.util.Map<java.lang.String,java.lang.String> packageAttributes)
void
setPackageLibrariesLocation(java.lang.String packageLibrariesLocation)
void
setPackageLocation(java.lang.String packageLocation)
void
setTokenSelectionCriteria(java.util.Map<java.lang.String,java.lang.String> tokenSelectionCriteria)
void
setWatchForChange(boolean watchForChange)
java.lang.String
toString()
-
Methods inherited from class step.core.accessors.AbstractOrganizableObject
addAttribute, getAttribute, getAttributes, hasAttribute, setAttributes
-
Methods inherited from class step.core.accessors.AbstractIdentifiableObject
addCustomField, computeCustomFieldIfAbsent, equals, getCustomField, getCustomField, getCustomFields, getId, hashCode, setCustomFields, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface step.core.objectenricher.EnricheableObject
addAttribute, getAttribute, getAttributes, setAttributes
-
-
-
-
Field Detail
-
packageLibrariesLocation
protected java.lang.String packageLibrariesLocation
-
packageLocation
protected java.lang.String packageLocation
-
watchForChange
protected boolean watchForChange
-
packageAttributes
protected java.util.Map<java.lang.String,java.lang.String> packageAttributes
-
executeLocally
protected boolean executeLocally
-
tokenSelectionCriteria
protected java.util.Map<java.lang.String,java.lang.String> tokenSelectionCriteria
-
functions
protected java.util.List<org.bson.types.ObjectId> functions
Keep track of the functions added by this package
-
-
Method Detail
-
getPackageLibrariesLocation
public java.lang.String getPackageLibrariesLocation()
- Returns:
- the resource path to the package libraries. Package libraries are either a folder of jar or DLLs
-
setPackageLibrariesLocation
public void setPackageLibrariesLocation(java.lang.String packageLibrariesLocation)
-
getPackageLocation
public java.lang.String getPackageLocation()
- Returns:
- the path to the package file. might be a
Resource
-
setPackageLocation
public void setPackageLocation(java.lang.String packageLocation)
-
isWatchForChange
public boolean isWatchForChange()
- Returns:
- true if changes to the content of the package file have to be tracked to automatically update the package
-
setWatchForChange
public void setWatchForChange(boolean watchForChange)
-
getPackageAttributes
public java.util.Map<java.lang.String,java.lang.String> getPackageAttributes()
- Returns:
- the additional attributes that have to be added to the attributes of the functions contained in this package
-
setPackageAttributes
public void setPackageAttributes(java.util.Map<java.lang.String,java.lang.String> packageAttributes)
-
getFunctions
public java.util.List<org.bson.types.ObjectId> getFunctions()
- Returns:
- the ID of the functions tracked by this package
-
setFunctions
public void setFunctions(java.util.List<org.bson.types.ObjectId> functions)
-
isExecuteLocally
public boolean isExecuteLocally()
-
setExecuteLocally
public void setExecuteLocally(boolean executeLocally)
-
getTokenSelectionCriteria
public java.util.Map<java.lang.String,java.lang.String> getTokenSelectionCriteria()
-
setTokenSelectionCriteria
public void setTokenSelectionCriteria(java.util.Map<java.lang.String,java.lang.String> tokenSelectionCriteria)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-