summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/process
AgeCommit message (Collapse)Author
2014-09-26Only override Module.reset value if it's actually given for a particularAndrew Branson
module
2014-09-26Avoid possible NPEs by never setting mC2KProps to null. Clear it onAndrew Branson
destroy and init.
2014-09-26Various problems found by FindBugsAndrew Branson
2014-09-23Removing HTTP and UDP serversZsolt Kovcs
2014-09-22Fixed Exception on the 'Server x initialized' message inAndrew Branson
Gateway.startServer() if Gateway.close has been called by the Bootstrap on error before it returns.
2014-09-22ItemPath.fromUUIDString unnecessary as ItemPath(String) supports bothAndrew Branson
plain UUIDs and an /entity prefix. Tightened that up and removed the fromUUIDString method for a simpler API. Also switched AgentPath(String) to a path argument for consistency. New AgentPaths should be created with AgentPath(new ItemPath(), String) instead.
2014-09-21Lost commits - NPE on ModuleResource.getVersion caused by badAndrew Branson
autoboxing, and Olivier's classloader tweaks.
2014-09-19Introduced static method ItemPath.fromUUIDString and made the UUIDAndrew Branson
constructor protected to better handle ItemPath and AgentPath construction with String UUIDs, throwing the right exceptions.
2014-09-18Hierarchical Roles. Fixes #199Andrew Branson
2014-09-15Add trim calls to ObjectProperties.getString() to discard any extraAndrew Branson
whitespace around the values. Fixes #165 Remove old Gateway.getProperty methods - there should be no deprecated methods in the 3.0 release Move all getProperty() calls to getString or other so they will be trimmed. Introduce ObjectProperties.getInstances to create ArrayLists of objects from comma-separated class name lists.
2014-09-15Rename DomainPath.setEntity to setItemPathAndrew Branson
2014-09-09Replaced int sysKey Item identifier with UUID, which is now portable.Andrew Branson
ItemPath objects are now used to identify Items throughout the kernel, replacing ints and Integers.
2014-08-28adds the support of the "help" argumentogattaz
2014-08-28pull master devsogattaz
2014-07-24CastorXMLUtility enhancements to use specific classloader rather thanogattaz
the main one and to configure castor if needed
2014-07-24Merge branch 'master' of ↵ogattaz
ssh://ogattaz@dev.cccs.uwe.ac.uk:22/var/git/cristal-kernel.git
2014-07-24ResourceLoader can specify a ClassLoader to pass to things like CastorAndrew Branson
2014-07-24Modification of the management of the Logger during the reading of theogattaz
starting arguments
2014-07-23Move openldap files to ldap packageAndrew Branson
Mark execute(ItemProxy, Job) non-public - should not be part of API, Jobs are fixed to a particular Item. Check null on module manager before calling shutdown scripts during close(). Remove auto-generated lines in ObjectProperties
2014-07-22Close all gateway singletons properly, adding close method toAndrew Branson
NextKeyManager, and leave the Gateway in a state where it can be reused with another init() call.
2014-07-04Refactored tanuki service wrapper to a separate moduleAndrew Branson
2014-06-30Separated modifying Lookup methods into LookupManager, which is onlyAndrew Branson
present in a server process. This stops clients trying to write to the directory without relying on their permissions.
2014-06-25Validate module resources to schema. Die if module resource importAndrew Branson
error. Fixes #181 Conflicts: src/main/java/com/c2kernel/process/Bootstrap.java
2014-06-19Force UTF-8 for client and server CORBA communication. By default theAndrew Branson
Sun ORB uses ISO-8859
2014-06-12Refactored LDAP into its own module.Andrew Branson
2014-06-11Separate PredefinedStepContainers for Agents and Items (and Server Item)Andrew Branson
2014-06-06Partial javadoc and scope tightening of the new interfaces.Andrew Branson
2014-06-06Backwards compatible Gateway.connect methodAndrew Branson
2014-06-05Moved old entitycreation package from the predefined step package to aAndrew Branson
new 'imports' package under entity. Renamed most classed with an 'Import' prefix to avoid clashes with other API classes. Fixes #194
2014-06-05Add Authenticator to the open() method params of ClusterStorage. PassedAndrew Branson
in through the TransactionManager. This allows user-login to storages. Fixes #192
2014-06-05LDAP refactored behind interfaces. All functions of LDAP now hiddenAndrew Branson
behind interfaces: Authenticator, Lookup and NextKeyManager (LDAP property storage was already a ClusterStorage). Gateway holds additional objects, and Fixes #26 #191. Refs #27 (needs additional work for read perms and auth tokens)
2014-05-15Introduced 'Layer' attribute to allow overriding of descriptions. DescAndrew Branson
with the same name in the same description tree will be ranked by LocalObjectLoader according to this number, and the highest one chosen for instantiation. Fixes #188
2014-05-14Removed unnecessary ItemProxy casts after removal of EntityProxyAndrew Branson
2014-05-14Refactored Proxy update notification server into its own class andAndrew Branson
thread, so executions return before proxy messages are sent. Another deadlock suspect.
2014-05-08Agent now extends Item, so they can have workflows. All traces of theAndrew Branson
old 'Entity' superclasses should be removed, including proxies and paths. Very large change, breaks API compatibility with CRISTAL 2.x. Fixes #135
2014-04-16Don't use logger to report exceptions, in case the Logger didn't getAndrew Branson
initialized.
2014-04-11Remove description editing workflows from the kernel - they have beenAndrew Branson
moved to cristal-dev. Requires future post-processing for previous Module.debug functionality
2014-04-09Merge module properties as the loading order is established, so thatAndrew Branson
they override each other in the correct order.
2014-04-09ResourceLoader.getModuleDefURLs interface method to allow theAndrew Branson
ResourceLoader to specify exactly where the module.xml files come from. Dumpc2kProps cleanup
2014-04-09BadArgumentsException - more specific exception thrown by readC2KArgsAndrew Branson
when the arguments are wrong.
2014-04-04Module XML now supports a workflowVer attribute for the Item element. IfAndrew Branson
not given, it assumed version 0, as per the previous behaviour. Fixes #180
2014-04-04AbstractMain with config file checking got lost from previous commit.Andrew Branson
Refs #177
2014-04-02ResourceImportHandler interface to allow custom <Resource> types orAndrew Branson
override the structure of standard ones. Specify with ResourceImportHandler.<resType> c2kprop. DefaultResourceImportHandler is used if not defined, which handled the 5 standard types (CA,EA,OD,SC,SM). Fixes #178
2014-03-06Module resources get a 'Module' property set when they belong to aAndrew Branson
particular module. If they belong to a particular module, they are moved into the correct sub-context for that module. If the resource is already set to a different module, and error occurs.
2014-02-26Properties extended as ObjectProperties, which can return any Object,Andrew Branson
and wrap int and boolean parsing. Gateway.getProperties() returns the new ObjectProperty instance. Old Gateway property methods still present but deprecated. Refs #149
2014-01-23Refactored Resource into a new ResourceLoader interface, which allowsAndrew Branson
CRISTAL processes in other enviroments with complex class loading (e.g. OSGi) to supply their own resource and class loader to the kernel and its modules. Fixes #149
2013-12-12Properties preserve and respect the PropertyDescription 'isMutable'Andrew Branson
property. This setting prevents the WriteProperty predefined step from changing the property value when isMutable is false. WriteProperty also requires the selected property to already exist - they should be created either during Item instantiation or using AddC2KObject. LDAPPropertyManager prepends the Property name in its entries with ! if they are non mutable. Various places around the kernel that create properties now set the mutable field. Fixes #150
2013-11-183.0-SNAPSHOT (Will be first open source version)Andrew Branson
New StateMachine desc IssueID #28
2013-09-20Pass c2kprops in as argument for ORB, so they can be overriddenAndrew Branson
2013-08-02Module resources can specify version number, which overrides the defaultAndrew Branson
version viewpoint of '0'.