/** * @return A {@link UID}. */ public Object createId(StatefulSessionEnterpriseContext ctx) throws Exception { return new UID(); }
public Object createId(StatefulSessionEnterpriseContext ctx) throws Exception { // // jason: could probably use org.jboss.util.collection.CompoundKey here // for better uniqueness based on hashCode and such... // // return new CompoundKey(this.localNodeName, new UID()); // return this.localNodeName + ":" + new UID(); }
/** * Returns a UID as a string. * * @return UID as a string. */ public static String asString() { return new UID().toString(); } }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=SupportingElement,id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; } }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=StartEvent,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=EndEvent,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=SubProcess,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
/** * Create the VMID for the current virtual mahcine. * * @return Virtual machine identifer. */ private static VMID create() { // get the local internet address for the current host byte[] address = getHostAddress(); return new VMID(address, PID.getInstance(), new UID()); } }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=IntermediateEvent,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=Process,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder("org.jbpm:"); str.append("type=Process,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder("org.jbpm:"); str.append("type=Other,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=" + getGatewayType() + "Gateway,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
@Override public ObjectName getID() { if (id == null) { StringBuilder str = new StringBuilder(Constants.ID_DOMAIN + ":"); str.append("type=" + getTaskType() + "Task,name=" + getName() + ",id=" + new UID()); id = ObjectNameFactory.create(str.toString()); } return id; }
/** * Construct a Token with given {@link Attachments} */ public TokenImpl(Attachments att) { this.context = new BasicExecutionContext(att); this.id = new UID().toString(); this.status = TokenStatus.Created; }
dir = new File(dir, ejbName + "-" + new UID().toString()); storeDir = dir;
/** * Construct a new GUID. */ public GUID() { this.vmid = VMID.getInstance(); this.uid = new UID(); // generate a hash code for this GUID int code = vmid.hashCode(); code ^= uid.hashCode(); hashCode = code; }
dir = new File(dir, ejbName + "-" + new UID().toString()); storeDir = dir;