org.isam.exehda.services
Interface Gateway


public interface Gateway


Nested Class Summary
static class Gateway.GwPermission
           
 
Field Summary
static java.lang.String SERVICE_NAME
           
 
Method Summary
 void drop(Gateway.GwPermission perm)
          Describe drop method here.
 Gateway.GwPermission grant(ApplicationId app, HostId[] targets, long leaseMinutes)
          Describe grant method here.
 Gateway.GwPermission renew(Gateway.GwPermission perm, long leaseMinutes)
          Describe renew method here.
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Method Detail

grant

public Gateway.GwPermission grant(ApplicationId app,
                                  HostId[] targets,
                                  long leaseMinutes)
Describe grant method here.

Parameters:
app - an ApplicationId value
targets - a HostId[] value
leaseMinutes - a long value
Returns:
a GwPermission value

drop

public void drop(Gateway.GwPermission perm)
Describe drop method here.

Parameters:
perm - a GwPermission value

renew

public Gateway.GwPermission renew(Gateway.GwPermission perm,
                                  long leaseMinutes)
Describe renew method here.

Parameters:
perm - a GwPermission value
leaseMinutes - a long value
Returns:
a GwPermission value