Package net.jini.core.entry

Examples of net.jini.core.entry.Entry


  public AttrSet(Class type) {
      this.type = type;
  }

  public void actionPerformed(ActionEvent ev) {
      Entry ent;
      try {
    ent = (Entry)type.newInstance();
      } catch (Throwable t) {
    logger.log(Level.INFO, "creating entry failed", t);
    return;
View Full Code Here


  public void menuSelected(MenuEvent ev) {
      JRadioButtonMenuItem match = new JRadioButtonMenuItem("(match)");
      match.setSelected(true);
      match.addActionListener(wrap(new Unmatch(index)));
      menu.add(match);
      Entry ent = tmpl.attributeSetTemplates[index];
      Field[] fields = ent.getClass().getFields();
      for (int i = 0; i < fields.length; i++) {
    Field field = fields[i];
    if (!valid(field))
        continue;
    try {
View Full Code Here

    /**
     * Create the service owned attributes for an Mahalo server
     */
    private static Entry[] attributesFor() {
  final Entry info = new ServiceInfo("Transaction Manager",
      "Sun Microsystems, Inc.""Sun Microsystems, Inc.",
      com.sun.jini.constants.VersionConstants.SERVER_VERSION,
      "", "");
 
  final Entry type =
      new com.sun.jini.lookup.entry.BasicServiceType("Transaction Manager");

  return new Entry[]{info, type};
    }
View Full Code Here

  if (reps[i] == null)
      return null;

  unpackFailure = true;
  lastRepReturned = reps[i++];
  final Entry rslt = lastRepReturned.entry();
  unpackFailure = false;
  return rslt;
    }
View Full Code Here

     * sections 2.3, 2.6.</P>
     */
    public void run() throws Exception {
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        Entry snsh1;
        Entry snsh2;
        SimpleEntry result;
        long leaseTime1 = timeout1;
        long leaseTime2 = timeout2;
        Lease lease1 = null;
        Lease lease2 = null;
View Full Code Here

        long[] evMatrix = new long[] {
            3, 3, 3, 0, 0, 0, 0, 0, 9, 6, 6, 9 };
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        SimpleEntry sampleEntry3 = new SimpleEntry("TestEntry #1", 2);
        Entry snapshot1;
        Entry snapshot2;
        Entry snapshot3;
        SimpleEntry template;
        int i;

        // first check that space is empty
        if (!checkSpace(space)) {
View Full Code Here

        long[] evTxnMatrix = new long[] {
            2, 2, 2, 0, 0, 0, 0, 0, 6, 4, 4, 6 };
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        SimpleEntry sampleEntry3 = new SimpleEntry("TestEntry #1", 2);
        Entry snapshot1;
        Entry snapshot2;
        Entry snapshot3;
        SimpleEntry template;
        Transaction txn;
        long leaseTime1 = timeout2 * 3;
        long leaseTime2 = Lease.FOREVER;
        long leaseTime3 = Lease.ANY;
View Full Code Here

     * sections 2.6, 3.1</P>
     */
    public void run() throws Exception {
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        Entry snapshot1;
        Entry snapshot2;
        SimpleEntry result;
        Transaction txn;

        // first check that space is empty
        if (!checkSpace(space)) {
View Full Code Here

     * sections 2.6, 3.1</P>
     */
    public void run() throws Exception {
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        Entry snapshot1;
        Entry snapshot2;
        SimpleEntry result;
        Transaction txn;

        // first check that space is empty
        if (!checkSpace(space)) {
View Full Code Here

     * sections 2.3, 2.6.</P>
     */
    public void run() throws Exception {
        SimpleEntry sampleEntry1 = new SimpleEntry("TestEntry #1", 1);
        SimpleEntry sampleEntry2 = new SimpleEntry("TestEntry #2", 2);
        Entry snapshot1;
        Entry snapshot2;
        SimpleEntry origEntry1;
        SimpleEntry origEntry2;
        SimpleEntry result;

        // first check that space is empty
View Full Code Here

TOP

Related Classes of net.jini.core.entry.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.