001// 002// Name 003// $RCSfile: DirectedCreate.java,v $ 004// 005// Copyright 006// Confidential Property of Kabira Technologies, Inc. 007// Copyright 2008, 2010 by Kabira Technologies, Inc. 008// All rights reserved. 009// 010// History 011// $Revision: 1.1.2.3 $ $Date: 2011/02/08 21:58:04 $ 012// 013package com.kabira.platform.annotation; 014 015import java.lang.annotation.*; 016 017/** This annotation describes the initial configuration for a distributed 018 * type that will use directed creates. When enabled, DirectedCreate 019 * causes all object creates to be directed to the specified node. 020 * 021 * @deprecated Use partitions to control which node owns an object. 022 */ 023@Retention(RetentionPolicy.RUNTIME) 024@Target(ElementType.ANNOTATION_TYPE) 025@Deprecated 026public @interface DirectedCreate 027{ 028 /** Must be set true to enable directed create. Default true. 029 */ 030 boolean enabled() default true; 031 032 /** The node name to be used for all object creates. 033 */ 034 String nodeName(); 035} 036