Package | Description |
---|---|
com.sun.jini.reggie |
Provides implementations of
ServiceRegistrar . |
Modifier and Type | Field and Description |
---|---|
EntryRep[] |
Item.attributeSets
ServiceItem.attributeSets converted to EntryReps.
|
EntryRep[] |
Template.attributeSetTemplates
ServiceTemplate.attributeSetTemplates converted to EntryReps
|
private EntryRep[] |
RegistrarImpl.AttrsAddedLogObj.attrSets
The attributes added.
|
private EntryRep[] |
RegistrarImpl.AttrsModifiedLogObj.attrSets
The new attributes.
|
private EntryRep[] |
RegistrarImpl.AttrsSetLogObj.attrSets
The new attributes.
|
private EntryRep[] |
RegistrarImpl.AttrsModifiedLogObj.attrSetTmpls
The templates to match.
|
private static EntryRep[] |
RegistrarImpl.emptyAttrs
Empty attribute set
|
Modifier and Type | Method and Description |
---|---|
private static EntryRep[] |
RegistrarImpl.deleteSet(Item item,
int i)
Delete item.attributeSets[i] and return the new array.
|
static EntryRep[] |
EntryRep.toEntryRep(Entry[] entries,
boolean needCodebase)
Converts an array of Entry to an array of EntryRep.
|
Modifier and Type | Method and Description |
---|---|
void |
RegistrarImpl.addAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets) |
void |
Registrar.addAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Adds the specified attribute sets (those that aren't duplicates of
existing attribute sets) to the registered service item.
|
private void |
RegistrarImpl.addAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
The code that does the real work of addAttributes.
|
private void |
RegistrarImpl.addAttrs(RegistrarImpl.SvcReg reg,
EntryRep entry)
Put the service in the serviceByAttr map under all attribute values
in the given entry, or in the serviceByEmptyAttr map if the entry
has no attributes, add a new instance of the EntryClass, and update
entryClasses as necessary.
|
private static boolean |
RegistrarImpl.attrMatch(EntryRep[] tmpls,
EntryRep attrSet)
Test if an entry either doesn't match any template in an array,
or matches a template but is a subclass of the template type.
|
private static boolean |
RegistrarImpl.attrMatch(EntryRep[] tmpls,
EntryRep attrSet)
Test if an entry either doesn't match any template in an array,
or matches a template but is a subclass of the template type.
|
private void |
RegistrarImpl.deleteAttrs(RegistrarImpl.SvcReg reg,
EntryRep entry,
boolean checkDups)
If checkDups is false, delete the service (if present) from
serviceByAttr under all attribute values of the given entry or
from serviceByEmptyAttr if the entry has no attributes.
|
private static boolean |
RegistrarImpl.matchEntry(EntryRep tmpl,
EntryRep entry)
Test if an entry matches a template.
|
void |
RegistrarImpl.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets) |
void |
RegistrarImpl.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets) |
void |
Registrar.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
Modifies existing attribute sets of a registered service item.
|
void |
Registrar.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
Modifies existing attribute sets of a registered service item.
|
private void |
RegistrarImpl.modifyAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
The code that does the real work of modifyAttributes.
|
private void |
RegistrarImpl.modifyAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
The code that does the real work of modifyAttributes.
|
void |
RegistrarImpl.setAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets) |
void |
Registrar.setAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Deletes all of the service item's existing attributes, and replaces
them with the specified attribute sets.
|
private void |
RegistrarImpl.setAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
The code that does the real work of setAttributes.
|
static Entry[] |
EntryRep.toEntry(EntryRep[] reps)
Converts an array of EntryRep to an array of Entry.
|
private void |
RegistrarImpl.updateAttrs(RegistrarImpl.SvcReg reg,
EntryRep entry,
Object[] values)
Store all non-null elements of values into the given entry,
and update serviceByAttr to match.
|
Constructor and Description |
---|
RegistrarImpl.AttrsAddedLogObj(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Simple constructor
|
RegistrarImpl.AttrsModifiedLogObj(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
Simple constructor
|
RegistrarImpl.AttrsModifiedLogObj(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
Simple constructor
|
RegistrarImpl.AttrsSetLogObj(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Simple constructor
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.