Ila

org.topoweb.ila.server.spi
Interface ServiceProviderResolver

All Superinterfaces:
IlaServiceResolver

public interface ServiceProviderResolver
extends IlaServiceResolver

The generalized resolution interface for all Ila network services. This resolver typically runs on an Ila server. In particular, its isLocal method determines whether the local environment is the authoritative server for a given ORI.

Author:
Babak Farhang

Field Summary
static int ISR_ILA
          The basic Ila client/server interface.
static int ISR_MIRROR
          The mirror service-provider interface.
static int ISR_REGISTRAR
          The registrar service-provider interface.
 
Method Summary
 int getServiceType()
          Returns the type of service this instance is resolving.
 boolean isLocal(org.topoweb.net.Ori ori)
          Tests whether the local VM is the authoritative server for the given ORI.
 
Methods inherited from interface org.topoweb.ila.IlaServiceResolver
resolve
 

Field Detail

ISR_ILA

public static final int ISR_ILA
The basic Ila client/server interface. This is the network service an Ila client uses to query the system for information, or to request a resource (URL) be parsed and added to the system.

See Also:
Ila, Constant Field Values

ISR_REGISTRAR

public static final int ISR_REGISTRAR
The registrar service-provider interface. This is the network service an Ila bot uses to update the system.

See Also:
Registrar, Constant Field Values

ISR_MIRROR

public static final int ISR_MIRROR
The mirror service-provider interface. This is the network service through which servers update link information.

See Also:
Mirror, Constant Field Values
Method Detail

getServiceType

public int getServiceType()
Returns the type of service this instance is resolving.

See Also:
ISR_ILA, ISR_REGISTRAR, ISR_MIRROR

isLocal

public boolean isLocal(org.topoweb.net.Ori ori)
Tests whether the local VM is the authoritative server for the given ORI.

Parameters:
ori - the ORI of the resource
Returns:
true, if this VM is the authoritative server for the given ori; false, o.w.

Ila

Copyright (C) 2002 Babak Farhang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.