Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Last active December 29, 2015 07:59
Show Gist options
  • Save grkvlt/7639741 to your computer and use it in GitHub Desktop.
Save grkvlt/7639741 to your computer and use it in GitHub Desktop.
Brooklyn 0.4.0 Deprecations

Deprecated Code from Brooklyn 0.4.0

These lists show files with code that has been deprecated since Brooklyn 0.4.0 and the lines in the files containing the deprecation notice along with the code that should be removed.

Unchanged

These have not been changed; see the notes in the comments.

@deprecated since 0.4.0 should not be needed / leaked outwith brooklyn internals / mgmt support?
635:// FIXME Can this really be deleted? Overridden by AbstractApplication; needs careful review
637:protected synchronized void setApplication(Application app) {
@deprecated since 0.4.0 override EntityManagementSupport.onManagementStarting if customization needed
1114:// FIXME Really deprecated? I don't want folk to have to override createManagementSupport for simple use-cases
1120:public void onManagementBecomingMaster() {}
@deprecated since 0.4.0 override EntityManagementSupport.onManagementStopping if customization needed
1122:// FIXME Really deprecated? I don't want folk to have to override createManagementSupport for simple use-cases
1128:public void onManagementNoLongerMaster() {}

Removed

The following deprecated methods, fields and interfaces have been removed, and references to them either changed to reflect current usage or removed where no longer applicable.

See pull request #1053 for the code diffs.

@deprecated in 1.4.1 (? - 0.4.1 ?, definitely by 0.6.0), @see execCommand and execScript
296:public int run(List<String> commands) {
@deprecated in 0.4.0, use Tasks.current()
43:public Task<?> getCurrentTask() { return BasicExecutionManager.getCurrentTask(); }
@deprecated in 0.4.0, use Tasks.current()
71:public static Task getCurrentTask() { return Tasks.current(); }
@deprecated in 0.4.0, use Tasks.setBlockingDetails
77:public static void setBlockingDetails(String description) {
@deprecated in 0.4.0, use Tasks.withBlockingDetails
86:public static Object withBlockingDetails(String description, Callable code) throws Exception {
@deprecated in 0.4.0; use current execution context, as per CompoundTask.submitXxx
178:protected ExecutionManager em;
@deprecated in 0.4; unused code; will be deleted
18:public interface TaskPreprocessor {
@deprecated since 0.4. Set default on ConfigKey in entity, rather than overriding it here 
77:protected String getDefaultVersion() { return NO_VERSION_INFO; }
@deprecated in 0.4.0. use obtainProvisioningFlags. 
296:protected final Map<String,Object> getProvisioningFlags(MachineProvisioningLocation location) {
@deprecated since 0.4.0, see {@link #getRmiRegistryPort()}
213:public Integer getRmiPort() {
@deprecated since 0.4.0, see {@link #getRmiRegistryPort()}
218:public Integer getRmiServerPort() {
@deprecated since 0.4 use RMI_REGISTRY_PORT
76:public static final PortAttributeSensorAndConfigKey RMI_PORT = RMI_SERVER_PORT;
@deprecated since 0.4.0 use assertContentEventuallyContainsText
234:public static void assertHttpContentEventuallyContainsText(final String url, final String containedText) {
@deprecated since 0.4.0 use HttpTestUtils.assertUrlEventuallyHasText or HttpTestUtils.assertUrlHasText
407:public static void assertUrlHasText(Map flags=[:], String url, String ...phrases) {
@deprecated since 0.4.0. user createWebServer, or better, use BrooklynLauncher.newLauncher()
67:BrooklynWebServer createLauncher(Map properties) {

NOTE Deprecated in Brooklyn 0.5.0

@deprecated in 0.5, use Tasks.current()
21:Task<?> getCurrentTask();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment