org.glassfish.api.admin
Annotation Type CommandLock


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface CommandLock

Annotation used to indicate what type of lock to acquire before executing an admin command. By default (witout this annotation), admin commands acquire a shared lock, allowing multiple admin commands to execute in parallel. Some commands, such as the synchronization command and the quiesce command require the exclusive lock to prevent any other admin commands from executing. Admin commands that are "read-only" and don't change any configuration state don't need any lock.

Author:
Bill Shannon

Required Element Summary
 CommandLock.LockType value
          Returns the type of lock to acquire.
 

Element Detail

value

public abstract CommandLock.LockType value
Returns the type of lock to acquire.

Returns:
the lock type


Copyright © 2012 GlassFish Community. All Rights Reserved.