/** * * @param memberId * @throws NoSuchElementException If entity cannot be resolved, or it is not a member */ @Effector(description="Replaces the entity with the given ID, if it is a member; first adds a new member, then removes this one. "+ "Returns id of the new entity; or throws exception if couldn't be replaced.") public String replaceMember(@EffectorParam(name="memberId", description="The entity id of a member to be replaced") String memberId);
/** * Restart the entity. */ @Effector(description="Restart the process/service represented by an entity") void restart(); }
/** * For the DEPLOYED_WARS to be updated, the input must match the result of the call to deploy */ @Effector(description="Undeploys the given context/artifact") public void undeploy( @EffectorParam(name="targetName") String targetName); }
/** * Stop the entity. */ @Effector(description="Stop the process/service represented by an entity") void stop();
/** * Start the entity in the given collection of locations. */ @Effector(description="Start the process/service represented by an entity") void start(@EffectorParam(name="locations") Collection<? extends Location> locations);
@Effector(description="Unmanages the url-mapping, so it is discarded and no longer applies") public void discard(); }
@Effector(description="Extends the fabric with a new instance of the fabric's underlying blueprint in a new region, "+ "returning the id of the new entity") public String addRegion( @EffectorParam(name="location", description="Location spec string " + "(e.g. aws-ec2:us-west-1)") String location);
@Effector(description="Updates the cluster members") void update(); }
/** * Grow or shrink this entity to the desired size. * * @param desiredSize the new size of the entity group. * @return the new size of the group. */ @Effector(description="Changes the size of the entity (e.g. the number of nodes in a cluster)") Integer resize(@EffectorParam(name="desiredSize", description="The new size of the cluster") Integer desiredSize);
@Effector(description="Forces reload of the configuration") public void reload();
@Effector(description="Stops and removes a region") public void removeRegion( @EffectorParam(name="id", description="ID of the child entity to stop and remove") String id);
@Effector(description="Updates the entities configuration, and then forces reload of that configuration") public void update();
@Effector(description="Moves this entity to the given container") public void move(@EffectorParam(name="destination") Entity destination);
@Effector(description="Updates the cluster members") void update();
@Override @Effector(description = "Deploys the given artifact, from a source URL, to a given deployment filename/context") public void deploy(@EffectorParam(name = "url", description = "URL of WAR file") String url, @EffectorParam(name = "targetName", description = "context path where WAR should be deployed (/ for ROOT)") String targetName) { super.deploy(url, targetName); restartIfRunning(); }
@Effector(description="Gets the current server configuration (by brooklyn recalculating what the config should be); does not affect the server") String getCurrentConfiguration();
@Override @Effector(description = "Undeploys the given context/artifact") public void undeploy(@EffectorParam(name = "targetName") String targetName) { super.undeploy(targetName); restartIfRunning(); }
@Effector(description="Gets the Hostname->IP mappings stored in this DNS server's conf file") public Map<String,String> getAddressMappings();
@Override @Effector(description = "Start the process/service represented by an entity") public void start(@EffectorParam(name = "locations") Collection<? extends Location> locations) { log.info("Invoking start (method) on "+this); invoke(START, ConfigBag.newInstance().configure(StartParameters.LOCATIONS, locations).getAllConfig()) .getUnchecked(); }
@Effector(description="Gets the current server configuration (by brooklyn recalculating what the config should be); does not affect the server") public String getCurrentConfiguration() { return getConfigFile(); }