| Constructor and Description |
|---|
BusAdminImpl()
Construtor da classe.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(String validator)
Adiciona um validador no barramento.
|
void |
connect(String host,
int port,
ORB orb)
Conecta a inst�ncia do objeto a um barramento.
|
tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategory |
createCategory(String categoryID,
String categoryName)
Cadastra uma nova categoria no barramento.
|
tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntity |
createEntity(String entityID,
String entityName,
String categoryID)
Cadastra uma nova entidade no barramento.
|
boolean |
createInterface(String interfaceName)
Cadastra uma nova interface no barramento.
|
void |
delValidator(String validator)
Remove um validador do barramento.
|
List<String> |
getAdmins()
Retorna uma lista das entidades administradoras atuais.
|
Map<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc,List<String>> |
getAuthorizations()
Retorna um mapa que contém as descrições de todas as entidades registradas
no barramento, associadas às suas respectivas autorizações.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryDesc> |
getCategories()
Retorna uma lista que contém descrições de todas as categorias das
entidades do barramento.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc> |
getEntities()
Retorna uma lista que contém descrições de todas as entidades registradas
no barramento.
|
List<String> |
getEntitiesWithCertificate()
Retorna uma lista que contém IDs de todas as etidades com certificado
registrado no barramento.
|
List<String> |
getInterfaces()
Retorna uma lista que contém as IDs de todas as interfaces registradas no
barramento.
|
List<tecgraf.openbus.core.v2_0.services.access_control.LoginInfo> |
getLogins()
Retorna lista que contém as informações de todos os logins ativos no
barramento.
|
short |
getLogLevel()
Retorna o valor atual da propriedade loglevel do barramento.
|
int |
getMaxChannels()
Retorna o valor atual da propriedade maxchannels do barramento.
|
List<tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc> |
getOffers()
Retorna uma lista que contém todas as descrições de ofertas de serviços do
barramento.
|
short |
getOilLogLevel()
Retorna o valor atual da propriedade oilloglevel do barramento.
|
List<String> |
getValidators()
Retorna uma lista dos validadores atualmente disponíveis no barramento.
|
void |
grantAdminTo(List<String> users)
Confere direitos de administração a uma lista de entidades.
|
void |
invalidateLogin(tecgraf.openbus.core.v2_0.services.access_control.LoginInfo loginInfo)
Invalida um login ativo no barramento.
|
boolean |
isReconfigurationCapable()
Indica se o barramento disponibiliza a interface de reconfiguração dinâmica.
|
void |
registerCertificate(String entityID,
byte[] certificate)
Registra um certificado no barramento.
|
void |
reloadConfigsFile()
Recarrega o arquivo de configurações no barramento.
|
void |
removeCategory(String categoryID)
Remove uma categoria do barramento.
|
void |
removeCertificate(String entityID)
Remove o certificado vinculado a uma entidade do barramento.
|
boolean |
removeEntity(String entityID)
Remove o registro de uma entidade do barramento.
|
void |
removeInterface(String interfaceName)
Remove uma interface do barramento.
|
void |
removeOffer(tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc desc)
Remove uma oferta de serviço.
|
void |
revokeAdminFrom(List<String> users)
Revoga direitos de administração de uma lista de entidades.
|
void |
revokeAuthorization(String entityID,
String interfaceName)
Remove autorização para uma interface de uma entidade.
|
boolean |
setAuthorization(String entityID,
String interfaceName)
Concede autorização para uma interface a uma entidade.
|
void |
setLogLevel(short loglevel)
Configura a propriedade loglevel do barramento.
|
void |
setMaxChannels(int maxchannels)
Configura a propriedade maxchannels do barramento.
|
void |
setOilLogLevel(short oilLoglevel)
Configura a propriedade oilloglevel do barramento.
|
public void connect(String host, int port, ORB orb)
host - Host do barramentoport - Porta do barramentoorb - ORB do barramentopublic List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryDesc> getCategories() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
getCategories in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategory createCategory(String categoryID, String categoryName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryAlreadyExists
createCategory in interface BusAdmincategoryID - ID da nova categoria.categoryName - Nome da nova categoria.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryAlreadyExistspublic void removeCategory(String categoryID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryInUse
removeCategory in interface BusAdmincategoryID - ID da categoria a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityCategoryInUsepublic List<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc> getEntities() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
getEntities in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntity createEntity(String entityID, String entityName, String categoryID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityAlreadyRegistered
createEntity in interface BusAdminentityID - ID da nova entidade.entityName - Nome da nova entidade.categoryID - ID de alguma categoria já cadastrada.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.EntityAlreadyRegisteredpublic boolean removeEntity(String entityID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
removeEntity in interface BusAdminentityID - ID da entidade a ser removida.true caso a entidade foi removida, e
false caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic List<String> getEntitiesWithCertificate() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
getEntitiesWithCertificate in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic void registerCertificate(String entityID, byte[] certificate) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.access_control.admin.v1_0.InvalidCertificate
registerCertificate in interface BusAdminentityID - ID da entidade.certificate - Certificado.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.access_control.admin.v1_0.InvalidCertificatepublic void removeCertificate(String entityID) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
removeCertificate in interface BusAdminentityID - ID da entidade a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic List<String> getInterfaces() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
getInterfaces in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic boolean createInterface(String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface
createInterface in interface BusAdmininterfaceName - Nome da nova interface.true se a interface cadastrada inexistia no barramento;
false em caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacepublic void removeInterface(String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InterfaceInUse
removeInterface in interface BusAdmininterfaceName - Nome da interface a ser removida.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InterfaceInUsepublic Map<tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.RegisteredEntityDesc,List<String>> getAuthorizations() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
getAuthorizations in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic boolean setAuthorization(String entityID, String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface
setAuthorization in interface BusAdminentityID - ID da entidade a receber autorização.interfaceName - Interface a ser autorizada.true se a autorização cadastrada inexistia no barramento;
false em caso contrário.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacepublic void revokeAuthorization(String entityID, String interfaceName) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterface, tecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.AuthorizationInUse
revokeAuthorization in interface BusAdminentityID - ID da entidade a ter autorização removida.interfaceName - Interface a ser autorizada.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationtecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.InvalidInterfacetecgraf.openbus.core.v2_0.services.offer_registry.admin.v1_0.AuthorizationInUsepublic List<tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc> getOffers() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
public void removeOffer(tecgraf.openbus.core.v2_0.services.offer_registry.ServiceOfferDesc desc)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
removeOffer in interface BusAdmindesc - Descrição da oferta.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic List<tecgraf.openbus.core.v2_0.services.access_control.LoginInfo> getLogins() throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
public void invalidateLogin(tecgraf.openbus.core.v2_0.services.access_control.LoginInfo loginInfo)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
invalidateLogin in interface BusAdminloginInfo - Informação de login.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic boolean isReconfigurationCapable()
isReconfigurationCapable in interface BusAdmintrue caso o barramento forneça a interface de reconfiguração
dinâmica e false caso contrário.public void reloadConfigsFile()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminreloadConfigsFile in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic void grantAdminTo(List<String> users) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdmingrantAdminTo in interface BusAdminusers - Lista de entidades que receberá direitos de administração.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic void revokeAdminFrom(List<String> users) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminrevokeAdminFrom in interface BusAdminusers - Lista de entidades que perderá direitos de administração.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic List<String> getAdmins() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
BusAdminpublic void addValidator(String validator) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminaddValidator in interface BusAdminvalidator - Identificação do validador.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic void delValidator(String validator) throws tecgraf.openbus.core.v2_0.services.ServiceFailure, tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdmindelValidator in interface BusAdminvalidator - Identificação do validador.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic List<String> getValidators() throws tecgraf.openbus.core.v2_0.services.ServiceFailure
BusAdmingetValidators in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic void setMaxChannels(int maxchannels)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminsetMaxChannels in interface BusAdminmaxchannels - Número máximo de canais a serem utilizados.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic int getMaxChannels()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
BusAdmingetMaxChannels in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic void setLogLevel(short loglevel)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminsetLogLevel in interface BusAdminloglevel - Nível de log do barramento.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic short getLogLevel()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
BusAdmingetLogLevel in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailurepublic void setOilLogLevel(short oilLoglevel)
throws tecgraf.openbus.core.v2_0.services.ServiceFailure,
tecgraf.openbus.core.v2_0.services.UnauthorizedOperation
BusAdminsetOilLogLevel in interface BusAdminoilLoglevel - Nível de log do middleware OiL no barramento.tecgraf.openbus.core.v2_0.services.ServiceFailuretecgraf.openbus.core.v2_0.services.UnauthorizedOperationpublic short getOilLogLevel()
throws tecgraf.openbus.core.v2_0.services.ServiceFailure
BusAdmingetOilLogLevel in interface BusAdmintecgraf.openbus.core.v2_0.services.ServiceFailureCopyright © 2016. All rights reserved.