Changes in JPPF 5.0
From JPPF 6.2 Documentation
|
Main Page > API changes > Changes in JPPF 5.0 |
1 New packaging
Version 5.0 introduces a more consistent packaging and distribution of the JPPF libraries. The following table compares the JPPF libraries present in each component distribution between versions 5.0 and 4.0:
Distribution | Jars in 5.0 | Jars in 4.0 |
Node | jppf-common.jar
jppf-node.jar |
jppf-common-node.jar |
Server | jppf-common.jar jppf-node.jar |
jppf-common-node.jar jppf-common.jar |
Client | jppf-common.jar jppf-client.jar |
jppf-common-node.jar jppf-common.jar |
Administration console | jppf-common.jar jppf-client.jar |
jppf-common-node.jar jppf-common.jar |
2 Location API classes
The following classes were moved from the package org.jppf.node.protocol to the package org.jppf.location:
- AbstractLocation
- FileLocation
- Location
- LocationEvent
- LocationEventListener
- MemoryLocation
- URLLocation
3 Load-balancer classes
The classes which were in the package org.jppf.server.schedule.bundle and its subpackages were moved to the org.jppf.load.balancer package and subpackages:
v4.0 packages | Moved to in v5.0 |
org.jppf.server.scheduler.bundle | org.jppf.load.balancer |
org.jppf.server.scheduler.bundle.autotuned org.jppf.server.scheduler.bundle.fixedsize |
org.jppf.load.balancer.impl |
org.jppf.server.scheduler.bundle.providers org.jppf.server.scheduler.bundle.spi |
org.jppf.load.balancer.spi |
Accordingly, the service definition file META-INF/services/org.jppf.server.schedule.bundle.spi.JPPFBundlerProvider was moved to META-INF/services/org.jppf.load.balancer.spi.JPPFBundlerProvider
4 Package org.jppf.server.protocol
The following classes were moved to the package org.jppf.node.protocol:
- JPPFTask
- JPPFRunnable
- CommandLineTask
- ClassPathElementImpl
5 Package org.jppf.task.storage
The following classes were moved to the package org.jppf.node.protocol:
- DataProvider
- MemoryMapDataProvider
6 Package org.jppf.client
class JPPFJob: the method getStatus() now returns an org.jppf.client.JobStatus enum value
7 Package org.jppf.client.submission
This package has been removed.
The class SubmissionStatus was moved and renamed as org.jppf.client.JobStatus
8 Package org.jppf.client.event
Class SubmissionStatusEvent:
- the class was renamed to JobStatusEvent
- the method getStatus() now returns an org.jppf.client.JobStatus enum value
- the method getSubmissionId() was renamed to getJobUuid()
Class SubmissionStatusListener:
- the class was renamed to JobStatusListener
- the method submissionStatusChanged(SubmissionStatusEvent) was refactored into jobStatusChanged(JobStatusEvent)
9 Package org.jppf.jca.cci
Interface JPPFConnection:
- submit(JPPFJob job, SubmissionStatusListener) was refactored into submit(JPPFJob, JobStatusListener)
- addSubmissionStatusListener(String, SubmissionStatusListener) was refactored into addJobStatusListener(String, JobStatusListener)
- removeSubmissionStatusListener(String, SubmissionStatusListener) was refactored into removeJobStatusListener(String, JobStatusListener)
- SubmissionStatus getSubmissionStatus(String) was refactored into JobStatus getJobStatus(String)
- getAllSubmissionIds() was renamed to getAllJobIds()
Main Page > API changes > Changes in JPPF 5.0 |