(parameters)
return set_building
Create a "build" behavior for server creation.

    Puts the server into the "BUILD" status immediately, transitioning it to
    "ACTIVE" after a requested amount of time.

    Takes one parameter:

    ``"duration"`` which is a Number, the duration of the build process in
    seconds.
Create a "build" behavior for server creation.
Create a build behavior for server creation .
def create_building_behavior(parameters):
    """
    Create a "build" behavior for server creation.

    Puts the server into the "BUILD" status immediately, transitioning it to
    "ACTIVE" after a requested amount of time.

    Takes one parameter:

    ``"duration"`` which is a Number, the duration of the build process in
    seconds.
    """
    duration = parameters["duration"]

    @default_with_hook
    def set_building(server):
        server.update_status(u"BUILD")
        server.collection.clock.callLater(
            duration,
            server.update_status,
            u"ACTIVE")
    return set_building
def create_building_behavior ( parameters ) : duration = parameters [ "duration" ] @ default_with_hook def set_building ( server ) : server . update_status ( u"BUILD" ) server . collection . clock . callLater ( duration , server . update_status , u"ACTIVE" ) return set_building