public interface ProtobufMetadataManagerMBean extends ProtobufMetadataManagerConstants
JMX.newMBeanProxy(javax.management.MBeanServerConnection, javax.management.ObjectName, java.lang.Class<T>) methods.ERRORS_KEY_SUFFIX, OBJECT_NAME, PROTO_KEY_SUFFIX, PROTOBUF_METADATA_CACHE_NAME| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileErrors(java.lang.String fileName)
Gets the error messages (caused by parsing, linking, etc) associated to a *.proto schema file.
|
java.lang.String[] |
getFilesWithErrors()
Get the full names of all files with errors.
|
java.lang.String |
getProtofile(java.lang.String fileName)
Gets the contents of a registered *.proto schema file.
|
java.lang.String[] |
getProtofileNames()
Get the full names of all registered schema files.
|
void |
registerProtofile(java.lang.String fileName,
java.lang.String contents)
Register a *.proto schema file.
|
void |
registerProtofiles(java.lang.String[] fileNames,
java.lang.String[] contents)
Registers multiple *.proto schema files.
|
void |
unregisterProtofile(java.lang.String fileName)
Unregister a *.proto schema file.
|
void |
unregisterProtofiles(java.lang.String[] fileNames)
Unregisters multiple *.proto schema files.
|
void registerProtofile(java.lang.String fileName,
java.lang.String contents)
throws java.lang.Exception
getFileErrors(String fileName) method. The list of offending files can be retrieved using getFilesWithErrors() method.fileName - the full name of the file (name can contain '/'); must end with ".proto" suffixcontents - the file contentsjava.lang.Exception - in case of failurevoid registerProtofiles(java.lang.String[] fileNames,
java.lang.String[] contents)
throws java.lang.Exception
getFileErrors(String fileName) method. The list of offending
files can be retrieved using getFilesWithErrors() method.fileNames - the full names of the files (name can contain '/'); names must end with ".proto" suffixcontents - the contents of each file; this array must have the same length as fileNamesjava.lang.Exception - in case of failurevoid unregisterProtofile(java.lang.String fileName)
throws java.lang.Exception
fileName - the full name of the file (name can contain '/'); must end with ".proto" suffixjava.lang.Exception - in case of failurevoid unregisterProtofiles(java.lang.String[] fileNames)
throws java.lang.Exception
fileNames - the full names of the files (name can contain '/'); names must end with ".proto" suffixjava.lang.Exception - in case of failurejava.lang.String[] getProtofileNames()
java.lang.String getProtofile(java.lang.String fileName)
fileName - the name of the file; must end with ".proto" suffixnull if the file does not existjava.lang.String[] getFilesWithErrors()
java.lang.String getFileErrors(java.lang.String fileName)
fileName - the name of the file; must end with ".proto" suffixnull if there are no errors