|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.AdminProxy
class AdminProxy
AdminProxy
objects are connected to particular
OutriggerServerImpl
s to implement the
JavaSpaceAdmin
interface for the server.
JavaSpaceAdmin
Field Summary | |
---|---|
(package private) OutriggerAdmin |
admin
Reference to the actual remote admin object. |
private static boolean |
DEBUG
|
private static long |
serialVersionUID
|
(package private) Uuid |
spaceUuid
The Uuid that identifies the space this proxy is for |
Fields inherited from interface com.sun.jini.outrigger.JavaSpaceAdmin |
---|
USE_DEFAULT |
Constructor Summary | |
---|---|
AdminProxy(OutriggerAdmin admin,
Uuid spaceUuid)
Create an AdminProxy for the given remote admin
objects. |
Method Summary | |
---|---|
void |
addLookupAttributes(Entry[] attrSets)
Add attribute sets for the service. |
void |
addLookupGroups(String[] groups)
Add new groups to the set to join. |
void |
addLookupLocators(LookupLocator[] locators)
Add locators for specific new lookup services to join. |
AdminIterator |
contents(Entry tmpl,
Transaction tr)
Return an AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
AdminIterator |
contents(Entry tmpl,
Transaction tr,
int fetchSize)
Return an AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
void |
destroy()
Destroy the service, if possible, including its persistent storage. |
boolean |
equals(Object other)
|
Entry[] |
getLookupAttributes()
Get the current attribute sets for the service. |
String[] |
getLookupGroups()
Get the list of groups to join. |
LookupLocator[] |
getLookupLocators()
Get the list of locators of specific lookup services to join. |
Uuid |
getReferentUuid()
Return the Uuid that has been assigned to the
resource this proxy represents. |
int |
hashCode()
|
void |
modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modify the current attribute sets, using the same semantics as ServiceRegistration.modifyAttributes. |
private void |
readObject(ObjectInputStream in)
Read this object back and validate state. |
private void |
readObjectNoData()
We should always have data in the stream, if this method gets called there is something wrong. |
void |
removeLookupGroups(String[] groups)
Remove groups from the set to join. |
void |
removeLookupLocators(LookupLocator[] locators)
Remove locators for specific lookup services from the set to join. |
void |
setLookupGroups(String[] groups)
Replace the list of groups to join with a new list. |
void |
setLookupLocators(LookupLocator[] locators)
Replace the list of locators of specific lookup services to join with a new list. |
JavaSpace |
space()
Return the space that this administrative object governs. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
final OutriggerAdmin admin
final Uuid spaceUuid
Uuid
that identifies the space this proxy is for
private static final boolean DEBUG
Constructor Detail |
---|
AdminProxy(OutriggerAdmin admin, Uuid spaceUuid)
AdminProxy
for the given remote admin
objects.
admin
- reference to remote server for the space.spaceUuid
- universal unique ID for the space.
NullPointerException
- if admin
or
spaceUuid
is null
.Method Detail |
---|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
public JavaSpace space() throws RemoteException
JavaSpaceAdmin
space
in interface JavaSpaceAdmin
RemoteException
- if communications with the
server is necessary and it can not be completed.public AdminIterator contents(Entry tmpl, Transaction tr) throws TransactionException, RemoteException
JavaSpaceAdmin
AdminIterator
that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction.
The interactions between other operations on the space and the returned iterator are undefined
contents
in interface JavaSpaceAdmin
tmpl
- The iterator should return only entries that match
tmpltr
- The iterator should return only entries that match
this transaction
TransactionException
- if there is a problem with
txn
.
RemoteException
- if communications with the
server is necessary and it can not be completed.public AdminIterator contents(Entry tmpl, Transaction tr, int fetchSize) throws TransactionException, RemoteException
JavaSpaceAdmin
AdminIterator
that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction.
The interactions between other operations on the space and the returned iterator are undefined
contents
in interface JavaSpaceAdmin
tmpl
- The iterator should return only entries that match
tmpltr
- The iterator should return only entries that match
this transactionfetchSize
- advice on how many entries to fetch when the iterator
has to go to the server for more entries.
TransactionException
- if there is a problem with
txn
.
RemoteException
- if communications with the
server is necessary and it can not be completed.public void destroy() throws RemoteException
DestroyAdmin
destroy
in interface DestroyAdmin
RemoteException
public Entry[] getLookupAttributes() throws RemoteException
JoinAdmin
getLookupAttributes
in interface JoinAdmin
RemoteException
public void addLookupAttributes(Entry[] attrSets) throws RemoteException
JoinAdmin
addLookupAttributes
in interface JoinAdmin
attrSets
- the attribute sets to add
RemoteException
public void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) throws RemoteException
JoinAdmin
modifyLookupAttributes
in interface JoinAdmin
attrSetTemplates
- the templates for matching attribute setsattrSets
- the modifications to make to matching sets
RemoteException
ServiceRegistration.modifyAttributes(net.jini.core.entry.Entry[], net.jini.core.entry.Entry[])
public String[] getLookupGroups() throws RemoteException
JoinAdmin
getLookupGroups
in interface JoinAdmin
RemoteException
JoinAdmin.setLookupGroups(java.lang.String[])
public void addLookupGroups(String[] groups) throws RemoteException
JoinAdmin
addLookupGroups
in interface JoinAdmin
groups
- groups to join
RemoteException
JoinAdmin.removeLookupGroups(java.lang.String[])
public void removeLookupGroups(String[] groups) throws RemoteException
JoinAdmin
removeLookupGroups
in interface JoinAdmin
groups
- groups to leave
RemoteException
JoinAdmin.addLookupGroups(java.lang.String[])
public void setLookupGroups(String[] groups) throws RemoteException
JoinAdmin
setLookupGroups
in interface JoinAdmin
groups
- groups to join
RemoteException
JoinAdmin.getLookupGroups()
public LookupLocator[] getLookupLocators() throws RemoteException
JoinAdmin
getLookupLocators
in interface JoinAdmin
RemoteException
JoinAdmin.setLookupLocators(net.jini.core.discovery.LookupLocator[])
public void addLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
addLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to join
RemoteException
JoinAdmin.removeLookupLocators(net.jini.core.discovery.LookupLocator[])
public void removeLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
removeLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to leave
RemoteException
JoinAdmin.addLookupLocators(net.jini.core.discovery.LookupLocator[])
public void setLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
setLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to join
RemoteException
JoinAdmin.getLookupLocators()
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Uuid getReferentUuid()
ReferentUuid
Uuid
that has been assigned to the
resource this proxy represents.
getReferentUuid
in interface ReferentUuid
Uuid
associated with the
resource this proxy represents. Will not
return null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |